score:10

Accepted answer

use the order by descending option and it will reverse the list. see msdn soring data for more examples on sorting.

return from workers in db.workers
           orderby workers.active descending, workers.naam 
           select workers;

score:29

the orderby method will sort items in ascending order by default. now, given that the numeric representation of a boolean is:

  • false = 0
  • true = 1

false values will naturally come first. if you want to reverse the order just use the descending keyword:

return from workers in db.workers
               orderby workers.active descending, workers.naam 
               select workers;

Related Query

More Query from same tag