This commit is contained in:
SandPoot
2024-01-01 23:35:28 -03:00
parent 07184e6106
commit 3bacf0a1dc
3 changed files with 54 additions and 3 deletions
+7
View File
@@ -4,6 +4,13 @@
/proc/cmp_numeric_asc(a,b)
return a - b
// please don't ask
/proc/cmp_numeric_text_desc(a, b)
return text2num(b) - text2num(a)
/proc/cmp_numeric_text_asc(a, b)
return text2num(a) - text2num(b)
/proc/cmp_text_asc(a,b)
return sorttext(b,a)