sorted currencies and fixed a floating point issue for amounts