}
public static String searchGetSortOrderString(boolean detailed, HttpServletRequest request) {
Locale locale = UtilHttp.getLocale(request);
ResultSortOrder resultSortOrder = ContentSearchOptions.getResultSortOrder(request);
if (resultSortOrder == null) return "";
return resultSortOrder.prettyPrintSortOrder(detailed, locale);
}
public static void checkSaveSearchOptionsHistory(HttpSession session) {
ContentSearchOptions contentSearchOptions = ContentSearchSession.getContentSearchOptions(session);
// if the options have changed since the last search, add it to the beginning of the search options history
if (contentSearchOptions.changed) {