View Single Post
08/21/15, 01:03 PM   #2
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 89
I assume the sorting is based on type, then the order with base 36 as next
0123456789abcdefghijklmnopqrstuvwxyz, if they are equal then sorting is based on case ?

comparing other values would likely produce a nil value as it can't convert it to a number for comaprison, which leads to a nil, which leads to type inequality, which leads to false, if it all makes sense somehow
"a head" < "ahead" == false --> nil < 17607829
"ahead" < "a head" == false --> 17607829 < nil

Anyways, it looks weird :P
aa == 370 -> (36^1)*10 + (36^0)*10
aaa == 13330 -> (36^2)*10 + aa
and so on ...

Last edited by CrazyDutchGuy : 08/21/15 at 01:09 PM.