Using the standard NHibernate example of Cats and Kittens, how would I use ICriteria to sort Cats based on Kitten count? For example, I want to do something like:
In HQL you can do it like this:
select cat from Eg.Cat cat join cat.Kittens kitten group by cat order by count(kitten) asc