aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy <51220084+jeremy-rifkin@users.noreply.github.com>2024-01-20 21:18:32 -0600
committerJeremy <51220084+jeremy-rifkin@users.noreply.github.com>2024-01-20 21:18:32 -0600
commit3441e45bebd81cf4f78506669a4563cafa91d057 (patch)
treeca33a80cb58bd7e93fb9e8470a8e3294c0b34910
parent4edb4a35fb0e735750c7f8caec915690ff28d905 (diff)
downloadcompiler-explorer-gh-10265.tar.gz
compiler-explorer-gh-10265.zip
Fix issue with compiler picker group sortinggh-10265
-rw-r--r--static/compiler-service.ts5
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();
}