3 of 11 added 83 characters in body

Sort the Textbooks

Sort the books

School is starting soon (if it hasn't already) and so it's time to get our textbooks in order.



| |  _
|F| | |
| |a|C|
| |r|G|


  | |_
  |F| | 
|a| |C|
|r| |G|


The input will be a set of books which need to rearranged alphabetically. It will contain only: |, _, , and A-Za-z. The titles of the books are read vertically, top-bottom


The output will need to be the same set of books organized in alphabetical order. The height of the books must stay the same and the title must have the same spacing from the top when re-arranged.

Books should be sorted alphabetically. Capital letters should be ordered before lowercase letters. Spaces should be ignored when sorting. The order is: