Add horizontal sorting demo page, fix typos, update script

For #118.