fixing empty search sort order ()