Kind of like the “uncooked spaghetti length” sorting algorithm: gravity. Hold them in your fist vertically, let them gently fall to a flat surface. Sorted.
Spaghetti length is made visible (quickly comparable), but it's still not sorted.
Spaghetti length is made visible (quickly comparable), but it's still not sorted.