Improve sorting/ordering options.
Merge branch 'master' into gh-pages