/// <summary>
 /// Updates the sorting criteria.
 /// </summary>
 /// <param name="criteria">New sort criteria.</param>
 public void SetSortCriteria(SortCriteria criteria)
 {
     SortCriteria = criteria;
 }