Fix currency pair order

Fixes #1035.