From versions.txt of mIRC v6.1:
Code:
8.Fixed $sorttok() not handling negative numbers.

Did you update?