fixed sorting for arithmetic columns