Normalize fields to fix sorting of string fields.