code: public void sortTypes(String sortParams) {
  
          List<CmsResourceTypeBean> types = getSearchTypes();
          SortParams sort = SortParams.valueOf(sortParams);
          switch (sort) {
              case title_asc:
                  Collections.sort(types, new CmsComparatorTitle(true));
                  break;
              case title_desc:
                  Collections.sort(types, new CmsComparatorTitle(false));
                  break;
              case type_asc:
                  Collections.sort(types, new CmsComparatorType(true));
                  break;
              case type_desc:
                  Collections.sort(types, new CmsComparatorType(false));
                  break;
              case dateLastModified_asc:
              case dateLastModified_desc:
              case path_asc:
              case path_desc:
              case tree:
              default:
                  // not supported
                  return;
          }
          m_handler.onUpdateTypes(types, m_searchObject.getTypes());
      }
docs: Sorts the types according to given parameters and updates the list.<p>
  
  @param sortParams the sort parameters