Class TableSortComparator


  • public class TableSortComparator
    extends Object
    • Constructor Detail

      • TableSortComparator

        public TableSortComparator()
    • Method Detail

      • sort

        public List<Integer> sort​(List<org.uberfire.ext.wires.core.grids.client.model.GridRow> rows,
                                  org.uberfire.ext.wires.core.grids.client.model.GridColumn gridColumn)
                           throws ModelSynchronizer.VetoException
        Parameters:
        rows - All the rows to sort.
        gridColumn - Column that we sort by.
        Returns:
        New order of the rows. Each number in the list shows what row should move to that location.
        Throws:
        ModelSynchronizer.VetoException