How Can I use GroupBy and OrdeBy in my Queries?

 I would like to use GroupBy or OrderBy with the following script, I searched about this but didn't find anything.

Dim jobQr = Query.From(Table.Person).Select("PersonalTitle").Where("IsInActive = 0 and IsExternal = 0 and IdentityType = 'Primary'")
Dim jobR = Session.Source.GetCollection(jobQr, EntityCollectionLoadType.Slim)

Can you help me?