reorder for width before height