Issue 650 order projects

Add support for sorting applications in the categories indexes.