Document how to supply a sort order from the command line, + bug fix