implemented GET /users with sorting