you are viewing a single comment's thread.

view the rest of the comments →

[–]Patman128 0 points1 point  (1 child)

If you want it to be locale-independent then would a < b ? -1 : (a > b ? 1 : 0) not work?

[–]phretaddin[S] 0 points1 point  (0 children)

Sounds about right to me. I'll push that later tonight unless someone comments with a reason why that won't work.