Skip to content

Commit c6500c3

Browse files
committed
[#2370]Sort the list the Java 7 way.
1 parent 496e07a commit c6500c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GAE/src/org/waterforpeople/mapping/dataexport/GraphicalSurveySummaryExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public void run() {
633633

634634
private void sortDataOnCollectionDate(final List<InstanceData> allData) {
635635
log.debug("Starting data sort");
636-
allData.sort(new Comparator<InstanceData>() {
636+
Collections.sort(allData, new Comparator<InstanceData>() {
637637
@Override
638638
public int compare(InstanceData o1, InstanceData o2) {
639639
// by submission date

0 commit comments

Comments
 (0)