sort 0s 1s 2s