Add sorting to flutter version command (#31064)

This commit is contained in:
Dima Rostopira 2019-04-16 20:23:56 +03:00 committed by Jonah Williams
parent 975d2f113c
commit e6f33e92a9

View file

@ -35,7 +35,7 @@ class VersionCommand extends FlutterCommand {
Future<List<String>> getTags() async {
final RunResult runResult = await runCheckedAsync(
<String>['git', 'tag', '-l', 'v*'],
<String>['git', 'tag', '-l', 'v*', '--sort=-creatordate'],
workingDirectory: Cache.flutterRoot,
);
return runResult.toString().split('\n');