Ignore:
Timestamp:
Sep 25, 2012, 7:47:58 PM (12 years ago)
Author:
dwinter
Branch:
default
Message:

annotationbrowser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/utils/JSONObjectComparator.java

    r28 r31  
    22
    33import java.util.Comparator;
     4import java.util.List;
    45
    56import de.mpiwg.itgroup.annotations.Annotation;
     
    3435    }
    3536       
    36  
     37        /**
     38         * Sortiere array nach einem Parameter in den Annotationen
     39         * @param results
     40         * @return
     41         */
     42        public static void sortAnnotations(List<JSONObject> results,String attribute) {
     43                JSONObjectComparator comp = new JSONObjectComparator(attribute);
     44               
     45               
     46       
     47                java.util.Collections.sort( results, comp);
     48               
     49               
     50
     51        }       
    3752       
    3853}
Note: See TracChangeset for help on using the changeset viewer.