Cleared up the code, made it look pretty, and commented everything.
Fixed a MAJOR bug where the list only /mostly/ sorted itself. Now it works!