Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-13 14:01:43 -0400
committerjames2002-05-13 14:01:43 -0400
commitb57d875e2ba9dc5b3079886025e1cf290e7fc2c1 (patch)
tree370bf00f53fc4216dded41990d96d5880a049fd1 /bundles/org.eclipse.team.cvs.ui
parent1befa03573e666d4d4b25af7548236501e56a312 (diff)
downloadeclipse.platform.team-b57d875e2ba9dc5b3079886025e1cf290e7fc2c1.tar.gz
eclipse.platform.team-b57d875e2ba9dc5b3079886025e1cf290e7fc2c1.tar.xz
eclipse.platform.team-b57d875e2ba9dc5b3079886025e1cf290e7fc2c1.zip
14774: History date sorting does not work
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistorySorter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistorySorter.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistorySorter.java
index 862f5f37c..57c31f1b2 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistorySorter.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistorySorter.java
@@ -23,11 +23,11 @@ class HistorySorter extends ViewerSorter {
// column headings: "Revision" "Tags" "Date" "Author" "Comment"
private int[][] SORT_ORDERS_BY_COLUMN = {
- {0, 4, 1, 2, 3}, /* version */
+ {0, 2, 3, 4, 1}, /* revision */
{1, 0, 2, 3, 4}, /* tags */
- {1, 4, 0, 2, 3}, /* date */
- {2, 4, 1, 3, 0}, /* author */
- {3, 4, 1, 2, 0} /* comment */
+ {2, 0, 3, 4, 1}, /* date */
+ {3, 0, 2, 4, 1}, /* author */
+ {4, 0, 2, 3, 1} /* comment */
};
/**
@@ -59,7 +59,7 @@ class HistorySorter extends ViewerSorter {
*/
int compareColumnValue(int columnNumber, ILogEntry e1, ILogEntry e2) {
switch (columnNumber) {
- case 0: /* version */
+ case 0: /* revision */
return versionCollator.compare(e1.getRevision(), e2.getRevision());
case 1: /* tags */
CVSTag[] tags1 = e1.getTags();

Back to the top