When sorting desc should be done before slizing the result. Added new test to ensure functionality.