Sort on width first, then length