Sorts the search results according to the value in flags, with an optional user-defined field name. Flags can be any of the st* constants.