score:2

you can use this query:

lista = lista
    .orderby(a => listb.firstordefault(b => b.id == a.objectb_id)?.date ?? datetime.maxvalue)
    .tolist();

this might not be the most efficient approach but it is safe. because if you use join it's possible that you get duplicate objecta instances if there are duplicate objectb(acc. to the id).


Related Query

More Query from same tag