We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e90cf5 commit e9806c9Copy full SHA for e9806c9
1 file changed
src/github/quickPicks.ts
@@ -393,6 +393,12 @@ export async function getLabelOptions(
393
<rect x="2" y="2" width="12" height="12" rx="6" fill="#${label.color}"/>
394
</svg>`, 'utf8'))
395
};
396
+ }).sort((a, b) => {
397
+ // Sort so that already picked labels are at the top
398
+ if (a.picked === b.picked) {
399
+ return a.label.localeCompare(b.label);
400
+ }
401
+ return a.picked ? -1 : 1;
402
});
403
return { newLabels, labelPicks };
404
}
0 commit comments