Simplifying the code for sorting and reverse-sorting. Also specifying the fields for my query, and updating comments.
Comment update.
Setting up constants for the max line length and num lines per page.
No longer allowing empty lines or white-space lines, client-side or server-side. Updating TODO, as well. Code has too much copy-paste, right now, though.