Package com.dotmarketing.comparators

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

Related Classes of com.dotmarketing.comparators.WebAssetSortOrderComparator

Copyright © 2018 www.massapicom. 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.