Add function which emits the sort key for Routes