all sorting based tests pass