bitSort by mask