Hi, I need to make a script to sort up to 2500 items that are each up to 4 characters apiece. Each item is a number between 1 and 2,500. I can create a long enough variable with binary variables but I cant pass that variable onto $sorttok() because I get the error:
* String too long: $bvar
if I try to do
//bset -t &a 1 $str(a,930) | bset -t &b 1 $str(b,930) | bset -t &c 1 $sorttok($bvar(&a,1,9999).text $bvar(&b,1,9999).text,1) | echo -a size: $bvar(&d,0)
size: 930
and I believe if that worked correctly it should have said 1860 since all it did was combine the two variables since the character $chr(1) wasnt in the text. So I assume they will have to be sorted using a script, instead of $sorttok, and I can think of a few simple while loops i could use to sort the full list but they would be very cpu intensive. Im trying to find a lighter way to sort the list as quickly as $sorttok() would with the lightest possible cpu usage. Any help would be greatly appreciated, Thanks.