[REFACTORING] removing sorting function since sorting is done in the backend