Implemented sort features