Improved currency sorting