/** Sorts the rows. If with group, each group is sorted independently. */ @SuppressWarnings("unchecked") private static void sort0(Grid grid, Comparator cmpr) { final Rows rows = grid.getRows(); if (rows.hasGroup()) for (Group g : rows.getGroups()) { int index = g.getIndex() + 1; Components.sort(rows.getChildren(), index, index + g.getItemCount(), cmpr); } else Components.sort(rows.getChildren(), cmpr); }
return false; //Avoid grid with null group if (rows.hasGroup()) { for (Group group : new ArrayList<Group>(rows.getGroups()))
if (rows != null) { if (rows.hasGroup()) { for (Group group : new ArrayList<Group>(rows.getGroups()))