GH-18 Sorted arrays of objects before comparing