fixed sorting scripts for _min and _max fields, updated normalize_fields function to work for a multilingual interface