Consise sorting and class definitions.