@Override public void sort(Sorter sorter) { // it is not sure that the custom runner support sorting so sorting is done // here too. if (mRunner instanceof Sortable) { Sortable sortableRunner = (Sortable) mRunner; sortableRunner.sort(sorter); } }
public void sort(Sorter sorter) { if (getTest() instanceof Sortable) { Sortable adapter = (Sortable) getTest(); adapter.sort(sorter); } }