Skip to content

Commit 7a68fcd

Browse files
Add comment explaining sort order more
1 parent 1bad26a commit 7a68fcd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • extensions/ql-vscode/src/model-editor/shared

extensions/ql-vscode/src/model-editor/shared/sorting.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function sortMethods(
4646
): Method[] {
4747
const sortedMethods = [...methods];
4848
sortedMethods.sort((a, b) => {
49+
// First sort by the type of method
4950
const methodAPrimarySortOrdinal = getMethodPrimarySortOrdinal(
5051
!!modeledMethodsMap[a.signature]?.length,
5152
modifiedSignatures.has(a.signature),

0 commit comments

Comments
 (0)