Working out order from rate tables