In Windows PowerShell if you do something like this:
PS> (1..20 | Sort-Object -Property {$_ % 3}) -join ' '
9 6 12 15 3 18 19 16 13 10 4 1 7 20 17 2 8 11 5 14
The results come back in an unexpected order. This is not a stable sort as the results… Read the full text.