Sort the rest API routes so that they are in a stable order.
Refactored sorting to use cmp.  Added tests.
Merge pull request #495 from girder/sort-rest-api-routes

Sort the rest API routes so that they are in a stable order.