73
edits
No edit summary |
No edit summary |
||
Line 133: | Line 133: | ||
elseif TYPE_SORT_ORDER[a.entityType] ~= TYPE_SORT_ORDER[b.entityType] then | elseif TYPE_SORT_ORDER[a.entityType] ~= TYPE_SORT_ORDER[b.entityType] then | ||
return TYPE_SORT_ORDER[a.entityType] < TYPE_SORT_ORDER[b.entityType] | return TYPE_SORT_ORDER[a.entityType] < TYPE_SORT_ORDER[b.entityType] | ||
-- And finally by | -- Then by subtype | ||
elseif a.subType ~= b.subType then | |||
return a.subType < b.subType | |||
-- And finally by name | |||
else | else | ||
return a.entityName < b.entityName | return a.entityName < b.entityName |
edits