Reduced the number of sorting methods to two.