Commit d0703572 authored by Guus der Kinderen's avatar Guus der Kinderen

Merge pull request #215 from drowe/patch-1

Order Fastpath Workgroups by Display Name
parents 5ad23d21 46d36a37
......@@ -995,26 +995,14 @@ public class WorkgroupManager implements Component {
}
/**
* Sorts all <code>Workgroups</code> by ID.
* Sorts all <code>Workgroups</code> by Display Name.
*/
static Comparator<Workgroup> workgroupComparator = new Comparator<Workgroup>() {
public int compare(Workgroup item1, Workgroup item2) {
float int1 = item1.getID();
float int2 = item2.getID();
String str1 = item1.getDisplayName();
String str2 = item2.getDisplayName();
if (int1 == int2) {
return 0;
}
if (int1 > int2) {
return 1;
}
if (int1 < int2) {
return -1;
}
return 0;
return str1.compareToIgnoreCase(str2);
}
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment