public static List<Contentlet> sortContentlets(List<Contentlet> contentletList, String sortBy) {
Logger.debug(ContentletServices.class, "I'm ordering by " + sortBy);
if (sortBy.equals("tree_order")) {
Collections.sort(contentletList, new WebAssetSortOrderComparator());
} else {
Collections.sort(contentletList, new ContentComparator("asc"));
}
return contentletList;