step 4: currency table sorting