private LinkedHashMap<String, String> getSortList(boolean includeType) {

        LinkedHashMap<String, String> list = new LinkedHashMap<String, String>();
        list.put(SortParams.title_asc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_TITLE_ASC_0));
        list.put(SortParams.title_desc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_TITLE_DECS_0));
        list.put(
            SortParams.dateLastModified_asc.name(),
            Messages.get().key(Messages.GUI_SORT_LABEL_DATELASTMODIFIED_ASC_0));
        list.put(
            SortParams.dateLastModified_desc.name(),
            Messages.get().key(Messages.GUI_SORT_LABEL_DATELASTMODIFIED_DESC_0));
        list.put(SortParams.path_asc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_PATH_ASC_0));
        list.put(SortParams.path_desc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_PATH_DESC_0));
        if (includeType) {
            list.put(SortParams.type_asc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_TYPE_ASC_0));
            list.put(SortParams.type_desc.name(), Messages.get().key(Messages.GUI_SORT_LABEL_TYPE_DESC_0));
        }
        return list;
    }
private LinkedHashMap < String , String > getSortList ( boolean includeType ) { LinkedHashMap < String , String > list = new LinkedHashMap < String , String > ( ) ; list . put ( SortParams . title_asc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_TITLE_ASC_0 ) ) ; list . put ( SortParams . title_desc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_TITLE_DECS_0 ) ) ; list . put ( SortParams . dateLastModified_asc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_DATELASTMODIFIED_ASC_0 ) ) ; list . put ( SortParams . dateLastModified_desc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_DATELASTMODIFIED_DESC_0 ) ) ; list . put ( SortParams . path_asc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_PATH_ASC_0 ) ) ; list . put ( SortParams . path_desc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_PATH_DESC_0 ) ) ; if ( includeType ) { list . put ( SortParams . type_asc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_TYPE_ASC_0 ) ) ; list . put ( SortParams . type_desc . name ( ) , Messages . get ( ) . key ( Messages . GUI_SORT_LABEL_TYPE_DESC_0 ) ) ; } return list ; }
Returns the list of properties to sort the results according to.<p>

@param includeType <code>true</code> to include sort according to type

@return the sort list