diff options
author | Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> | 2024-01-20 21:18:32 -0600 |
---|---|---|
committer | Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> | 2024-01-20 21:18:32 -0600 |
commit | 3441e45bebd81cf4f78506669a4563cafa91d057 (patch) | |
tree | ca33a80cb58bd7e93fb9e8470a8e3294c0b34910 | |
parent | 4edb4a35fb0e735750c7f8caec915690ff28d905 (diff) | |
download | compiler-explorer-gh-10265.tar.gz compiler-explorer-gh-10265.zip |
Fix issue with compiler picker group sortinggh-10265
-rw-r--r-- | static/compiler-service.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/static/compiler-service.ts b/static/compiler-service.ts index b14e79676..3eb7911aa 100644 --- a/static/compiler-service.ts +++ b/static/compiler-service.ts @@ -140,7 +140,10 @@ export class CompilerService { return {value: compiler.group, label: compiler.groupName || compiler.group}; }) .sort((a, b) => { - return a.label.localeCompare(b.label, undefined /* Ignore language */, {sensitivity: 'base'}) === 0; + // I'm pretty sure the @types are wrong and _Chain.sort is just Array.prototype.sort + return a.label.localeCompare(b.label, undefined /* Ignore language */, { + sensitivity: 'base', + }) as unknown as boolean; }) .value(); } |