add new sorting methods and comments