Added sorting by first detected field.