Date Sorting - Latest to Oldest
- by Erika Szabo
Collections.sort(someList, new Comparator<SomeObject>() {
            public int compare(final SomeObject object1, final SomeObject object2) {
                return (object1.getSomeDate()).compareTo(object2.getSomeDate()); 
            }}
        );
Would it give me the objects with latest dates meaning the list will contain the set of objects with latest date to oldest date?