Implemented some sorts