code: public void moveUp(int row) {
          E entry = getElement(row);
  
          int firstRow = row - 1;
          getElements().add(firstRow, entry);
          getElements().remove(row + 1);
  
          entry.setOrder(row);
          getElements().get(row).setOrder(row + 1);
  
          fireTableRowsUpdated(firstRow, row);
      }
docs: Moves the element at the given {@code row} one position up, effectively switching position with the previous element.
  <p>
  The order of both elements is updated accordingly and all listeners notified.
  
  @param row the row of the element that should be moved one position up