Add sort_by validation
Add positive integer validation
Simplify implementations