public SolrQuery SolrQuery::setTermsSort    ( int $sortType   )

SolrQuery::setTermsSortSpecifies how to sort the returned terms

sortType

SolrQuery::TERMS_SORT_INDEX or SolrQuery::TERMS_SORT_COUNT