Make route names not depend on order.

This matters for persistence.