sort tests in ruby