Tested sort method