Now lazily generating sortCompareFunction