// Sort order
if (StringUtils.equalsIgnoreCase("modified-asc", sort)) {
q.sortByModificationDate(Order.Ascending);
} else if (StringUtils.equalsIgnoreCase("modified-desc", sort)) {
q.sortByModificationDate(Order.Descending);
} else if (StringUtils.equalsIgnoreCase("created-asc", sort)) {
q.sortByCreationDate(Order.Ascending);
} else if (StringUtils.equalsIgnoreCase("created-desc", sort)) {
q.sortByCreationDate(Order.Descending);
} else if (StringUtils.equalsIgnoreCase("published-asc", sort)) {