Some minor edits, plus a resort

Plus I fixed qsort.py so it actually gets the line endings right.