private IEnumerable <Category> GetSelectedCategories() { return(SelectedCategories.OrderBy(x => x.Name).Select((x, i) => { x.Index = i; return x; }).ToList()); }