Put "init" as the topmost item in the sort again

This commit is contained in:
Brendan Robert 2015-07-05 22:59:28 -05:00
parent 736ab81061
commit d2f4766e51

View File

@ -19,6 +19,8 @@ public class DataUtilities {
entities.sort((a,b)->{
String nameA = a == null ? "" : nullSafe(a.getName());
String nameB = b == null ? "" : nullSafe(b.getName());
if (nameA.equalsIgnoreCase("init")) return -1;
if (nameB.equalsIgnoreCase("init")) return 1;
return nameA.compareTo(nameB);
});
}