Add element selection on sorting.