Add comment explaining sort order more

This commit is contained in:
Robert
2024-02-21 10:40:38 +00:00
parent 1bad26a67d
commit 7a68fcd05d

View File

@@ -46,6 +46,7 @@ export function sortMethods(
): Method[] {
const sortedMethods = [...methods];
sortedMethods.sort((a, b) => {
// First sort by the type of method
const methodAPrimarySortOrdinal = getMethodPrimarySortOrdinal(
!!modeledMethodsMap[a.signature]?.length,
modifiedSignatures.has(a.signature),