Checks the internal cache for an appropriate entry, and if none is found reads the terms out of
fieldand calls the given SortComparator to get the sort values. A hit in the cache will happen if
reader,
field, and
comparatorare the same (using
equals()) as a previous call to this method.
Array of sort objects, one for each document.