public bool SolrDocument::sort    ( int $sortOrderBy   [, int $sortDirection = SolrDocument::SORT_ASC  ] )

SolrDocument::sortSorts the fields in the document

sortOrderBy

The sort criteria.

sortDirection

The sort direction.