Reworked /sql, now called /sort, renamed a ton

Commented out old /sort method, now /sql is called /sort

I renamed a bunch of variables to better reflect what they represent and
fixed the tracelines so that they accurately reflect what was being done.

Aside: want to see what's been in the tracking logs, if anything.