mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-28 15:40:05 +01:00
Merge pull request #1333 from ArchieBeepBoop/datasorting
Fixes a long lasting runtime with filter data sorting.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user