Merge pull request #1333 from ArchieBeepBoop/datasorting

Fixes a long lasting runtime with filter data sorting.
This commit is contained in:
Dahlular
2021-06-27 23:01:53 -06:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -23,6 +23,9 @@ GLOBAL_VAR_INIT(cmp_field, "name")
/proc/cmp_records_dsc(datum/data/record/a, datum/data/record/b)
return sorttext(a.fields[GLOB.cmp_field], b.fields[GLOB.cmp_field])
/proc/cmp_filter_data_priority(list/A, list/B)
return A["priority"] - B["priority"]
/proc/cmp_ckey_asc(client/a, client/b)
return sorttext(b.ckey, a.ckey)