Add LINQ query expression builder

Better handling of group ordering.