Index: lams_bb_integration/web/links/monitor.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/links/monitor.jsp,v diff -u -r1.2 -r1.3 --- lams_bb_integration/web/links/monitor.jsp 30 Jan 2015 23:25:20 -0000 1.2 +++ lams_bb_integration/web/links/monitor.jsp 3 Feb 2015 20:04:13 -0000 1.3 @@ -40,8 +40,21 @@ if (f.getIsFolder()) { - BbList cList = cLoader.loadChildren(f.getId()); - Content[] cArray = (Content[]) cList.toArray(new Content[0]); + BbList cList = cLoader.loadChildren(f.getId()); + Content[] cArray = cList.toArray(new Content[0]); + //sort content by title + Arrays.sort(cArray, new Comparator() { + @Override + public int compare(Content o1, Content o2) { + if (o1 != null && o2 != null) { + return o1.getTitle().compareToIgnoreCase(o2.getTitle()); + } else if (o1 != null) + return 1; + else + return -1; + } + }); + String title = f.getTitle(); if (title.indexOf("'") != -1) { title = title.replace("'", "\\'"); @@ -165,6 +178,36 @@ + \ No newline at end of file