Sort definitions.