Line sorter

Sort lines

Input

Result

...