passing test for sorting