Fixed error when sorting by numeric long field.