Add order into route_handlers

Hopefully would fix #412. Need a test.