[#2107] Let Record implement Comparable