Thanks . I figured it out
if class B looks like public class B { public string Name {get; set;} }
public class A { public B B1 {get; set;} }
set ISortedResultRequest.Sorting = "B1.Name ASC" , thebackend is able to add that to the query