cubicweb #12306543 make it possible to control sort terms in entity's cw_related_rql method [validation pending]

The default is by modification_date, descending. I suggest to add a sort_terms argument to the function which would list couple (<sorting term>, <is ascending>).

Also, it would be good if the method could optionally return the select node (no as_string()).

prioritynormal
typeenhancement
done in3.23.0
load0.500
load left0.000
closed by#12d226a5bab9 [entity] Make it possible to specify sorting terms in cw_related_rqlst method
patch[entity] Make it possible to specify sorting terms in cw_related_rqlst method [applied][entity] Add a cw_related_rqlst method returning the RQL select node of cw_related method [applied]