Fix sort checking v2

This fixes #107 and #108. To pick names for functions I created, I needed to rename normalizeTo$something to check$somethingElse (see 38d49d2).

This version incorporates Tillmann's feedback on #112.