Search code examples
asp.netentity-frameworkentitydatasource

Randomize OrderBy with EntityDataSource


I am getting a list of people in a EntityDataSource and binding this to a repeater. I want to order them randomly so the people are not always displayed in the same order. What options do I have to do this?


Solution

  •  list.OrderBy(x => Guid.NewGuid())
    

    should do the trick.