* the sort criteria to use
* @return the Sort object describing the sorting
*/
public Sort getSort(final ResourceSortCriteria inSortCriteria)
{
ResourceSortCriteria sortCriteria = overridingSortCriteria != null ? overridingSortCriteria : inSortCriteria;
ArrayList<org.apache.lucene.search.SortField> sortFields = new ArrayList<org.apache.lucene.search.SortField>();
for (ResourceSortCriterion criterion : sortCriteria.getCriteria())
{
boolean reverse = criterion.getSortDirection() == SortDirection.DESCENDING;
switch (criterion.getSortField())
{
case DATE_ADDED: