Sort the routes so that methods can be resolved in order