I have a Linq query which returns an ordered list. It works, but when sorting boolean values it always puts the false items first.
return from workers in db.Workers
orderby workers.active, workers.naam
select workers;
Is there a way to order the true items first?
Use the order by
descendingoption and it will reverse the list. See MSDN Soring Data for more examples on sorting.