Implement sorting for selected models