where $max_spread is the maximum range you expect your numbers to cover before wrapping. 50_000 might be a better choice than 200.(abs($a - $b) <=> $max_spread) * ($b <=> $a)
In reply to Re^3: Sorting through a rollover
by Roy Johnson
in thread Sorting through a rollover
by onegative
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |