Patch to fix invalid SQL caused by older OrderBy saved search prefs

Three users have an older pref that causes incorrect search results:
ABELTJE, HDP, and ANDK.