sort items by height, followed by width & if they images are the same size, use the filepath