"Order by" in JsonRPC

(Vincenzo Ferraro) #1

Hi everyone,
in the method:
How do I order the results for rec_name?


(Cédric Krier) #2

Read result has no order. You can get an ordered result with a search or search_read.

(Vincenzo Ferraro) #3

Thank you,
How do I enter the order request in the following reason?

model.party.party.search([], 0, 1000, null, <userPreference>)

(Cédric Krier) #4

It is a list of tuples like described in Model — trytond 5.1 documentation