Examples of WebAssetSortOrderComparator


Examples of com.dotmarketing.comparators.WebAssetSortOrderComparator

  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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.