Sure. Your result ordered the half with the maximum length all first (in this case the lengths 10, 9, 8, 7, 6), and then the other half. But op said s/he wants
the largests in top and bottom, not the largest on top, and the rest on the bottom —
Lamak 1 min ago