Allow sorting of record type