Changes the file sort in the custom view

This commit is contained in:
Eric Amodio
2017-09-20 01:09:19 -04:00
parent 70071448d6
commit a114e2de87
4 changed files with 24 additions and 10 deletions

View File

@@ -31,7 +31,9 @@ export class StashNode extends ExplorerNode {
}
}
return statuses.map(s => new StashFileNode(s, this.commit, this.context, this.git));
const children = statuses.map(s => new StashFileNode(s, this.commit, this.context, this.git));
children.sort((a, b) => a.label!.localeCompare(b.label!));
return children;
}
getTreeItem(): TreeItem {