• 2 weeks ago
Next we look at a different approach to Sorting than you find in other tutorials. Works in harmony with our Filtering and will also fit in with Paging and remembering the last Filter, Sort and Page options for a View! We will get all of this working together eventually, but for now, enjoy the Filtering and Sorting.
0:50 Sorting-Not all Column Headings are appropriate
2:00 Controller Index Action
3:20 Fixed Column Headings - Button Style
7:00 Hide last sort field and direction in View
8:15 String array of sort keywords in Controller
9:00 Set sort field and direction
10:40 Add the sort to the LINQ
13:45 Demo sorting and filtering

Recommended