Browse Source

Sorts starred branches first in quickpick

main
Eric Amodio 6 years ago
parent
commit
baa2a9d715
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/quickpicks/branchesAndTagsQuickPick.ts

+ 2
- 1
src/quickpicks/branchesAndTagsQuickPick.ts View File

@ -267,7 +267,8 @@ export class BranchesAndTagsQuickPick {
branches.sort(
(a, b) =>
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||
(a.starred ? -1 : 1) - (b.starred ? -1 : 1) ||
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||
a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' })
);
for (const b of branches) {

Loading…
Cancel
Save