fixed the sort tests to work with the methods and updated sort methods