sort definitions