public ViewResult Index() { var model = new CategoryListViewModel { Categories = repository.Categories.OrderBy(c => c.Name) }; return View(model); }