sgh/comparable (packagist): Provides Comparable and Comparator interfaces and methods to sort and compare objects based on these.
Keywords: comparable|comparator