Respect the order of routes in addition to mappings

Fixes #24