CompareFunction typedef
A function that compares two objects for sorting. It will return -1 if a should be ordered before b, 0 if a and b are equal wrt to ordering, and 1 if a should be ordered after b.
Implementation
typedef CompareFunction = int Function(Object? a, Object? b);