fix for the initial sort for text mining search