Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2016-02-22 23:20:10 +0000
committerGerrit Code Review @ Eclipse.org2016-02-23 22:26:01 +0000
commit30ce0120faab7592239bdffdd3eff70908d1c2e1 (patch)
treea6feb0aae108e91cc9b1f85e65f698a16bd5d654 /org.eclipse.mylyn.tasks.ui
parentf09f773bc622943bcc870d6b71beece7d1993d63 (diff)
downloadorg.eclipse.mylyn.tasks-30ce0120faab7592239bdffdd3eff70908d1c2e1.tar.gz
org.eclipse.mylyn.tasks-30ce0120faab7592239bdffdd3eff70908d1c2e1.tar.xz
org.eclipse.mylyn.tasks-30ce0120faab7592239bdffdd3eff70908d1c2e1.zip
488263: support sorting by rank when rank is not a base 10 number
Change-Id: If72f072d219ae5c79fe4ae8c4dfef13e1a2b90ff Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=488263
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
index 0ee528aa7..371e47eac 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
@@ -43,7 +43,7 @@ public class TaskComparator implements Comparator<ITask> {
/**
* Return a array of values to pass to taskKeyComparator.compare() for sorting
- *
+ *
* @param element
* the element to sort
* @return String array[component, taskId, summary]
@@ -199,7 +199,7 @@ public class TaskComparator implements Comparator<ITask> {
: Double.valueOf(rankString2);
return compare(rank1, rank2, sortDirection);
} catch (NumberFormatException e) {
- // ignore, means that there is no rank on one of the elements
+ return compare(rankString1, rankString2, sortDirection);
}
}
}

Back to the top