sorting a bit