Images are sorted according to location