refs #4536 fix custom search sql order by
refs #4536 add special handling for full text search