private void MovieActionWorkshopNameSort() { var nameState = MovieActionWorkshopNameSortState; SetAllStates(SortState.Default); MovieActionWorkshopNameSortState = (nameState + 1) % 3; if (MovieActionWorkshopNameSortState == 0) ++MovieActionWorkshopNameSortState; _workshopNameComparer.SetSortMode(MovieActionWorkshopNameSortState == 1); _listToControl.Sort(_workshopNameComparer); MovieActionWorkshopNameIsSelected = true; }