@Override
protected void setup() {
table = new Table("DefaultItemSorter with custom comparator");
container = createContainer();
populateContainer(container);
container.setItemSorter(new DefaultItemSorter(new Comparator<Object>() {
@Override
public int compare(Object o1, Object o2) {
if (o1 instanceof CheckBox && o2 instanceof CheckBox) {
Boolean b1 = ((CheckBox) o1).getValue();