Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
neunhoef
· 9y ago · 0 comments
That is right, if you have access to your comparator, then this is much easier. However, it would still not work well for negative numbers, and, in many cases you sit client side and do not have access to your database engine.
Comments
[–]
cousin_it
9y ago
It's easy to extend the comparator to negative numbers, just check for the minus sign as well.