format currency, sort dates