{
PropertyModel propertyModel = _model.get(propertyName);
int availableRows = _source.getAvailableRows();
SortConstraint constraint = new SortConstraint(propertyModel, ascending ? ColumnSort.ASCENDING : ColumnSort.DESCENDING);
List<SortConstraint> constraints = Collections.singletonList(constraint);
_source.prepare(0, availableRows - 1, constraints);
for (int i = 0; i < ids.length; i++)