Sorting by biggest dimension works.