We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b141291 + 6f020d4 commit c868bdcCopy full SHA for c868bdc
extensions/ql-vscode/src/model-editor/shared/sorting.ts
@@ -76,6 +76,13 @@ function compareMethod(a: Method, b: Method): number {
76
if (!a.supported && b.supported) {
77
return -1;
78
}
79
+
80
// Then sort by number of usages descending
- return b.usages.length - a.usages.length;
81
+ const usageDifference = b.usages.length - a.usages.length;
82
+ if (usageDifference !== 0) {
83
+ return usageDifference;
84
+ }
85
86
+ // Then sort by method signature ascending
87
+ return a.signature.localeCompare(b.signature);
88
0 commit comments