I need to make a script to sort up to 2500 items that are each up to 4 characters apiece
Not sure in what "form" you want your output data (besides sorted)... You could sort with hash tables and the problem of "set line too long", size hash tables are practically unlimited in number of entries...
Code:
alias hashtest {
hsetup
hashout
}
alias hsetup {
var %n 1
while (%n <= 2500) {
hadd -mb hSort %n $+($rand(A,Z), $rand(A,Z), $rand(A,Z), $rand(A,Z))
inc %n
}
}
alias hashout {
var %n 1
while (%n <= 2500) {
echo -s $hget(hSort, %n)
inc %n
}
}