diff --git a/src/org/ntlab/deltaViewer/CollaborationAliasCollector.java b/src/org/ntlab/deltaViewer/CollaborationAliasCollector.java index 244adcd..9f22d79 100644 --- a/src/org/ntlab/deltaViewer/CollaborationAliasCollector.java +++ b/src/org/ntlab/deltaViewer/CollaborationAliasCollector.java @@ -19,7 +19,7 @@ public CollaborationAliasCollector(IAliasCollector dac) { aliasList.addAll(dac.getAliasList()); - aliasList = sort(aliasList); + aliasList = sortAliasListByTimeStamp(aliasList); } /* @@ -40,7 +40,7 @@ */ public void merge(IAliasCollector other) { List otherAliasList = other.getAliasList(); - otherAliasList = sort(otherAliasList); + otherAliasList = sortAliasListByTimeStamp(otherAliasList); int otherIdx = 0; // Index of otherAliasList int thisIdx = 0; // Index of thisAliasList while(otherIdx < otherAliasList.size()) { @@ -81,7 +81,7 @@ * @param aliasList AliasList to sort. * @return Sorted AliasList. */ - private List sort(List aliasList) { + private List sortAliasListByTimeStamp(List aliasList) { List cloneAliasList = new ArrayList<>(aliasList); List sortedAliasList = cloneAliasList.stream().sorted(new Comparator() { @Override