sorted by width and height