sort script, html output, etc