Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to impose a numeric sort on negative numbers?



Hi,
arr=( -1A -2b -3B 0 1A 2C 3B )
print -rl ${(on)arr}

Output:
0
1A
-1A
-2b
2C
3B
-3B

So it's not "correct". How to sort from -3 to 2?
-- 
Sebastian Gniazdowski
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit
Blog: http://zdharma.org


Messages sorted by: Reverse Date, Date, Thread, Author