Added sort method to sort the tests