Sort the routes so that methods can be resolved in order

/to @bajtos @ritch

Express 4.x doesn't expose app.routes. The PR sorts the routes before they are added to express.