Dear All,
I am trying to sort the searched records using following code:
roundings = PatientRounding.search([
('name', '=', self.name),
], order=[('evaluation_start', 'DESC')])
But, I am not getting the results sorted on 'evaluation_start' field.
Infact, the 'order' clause is not affecting the sorting of searched records!
Is this the correct way of sorting the searched records? Or there is some
other way of searching for a model and retuning the sorted results?
--
Regards,
Khurram.
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/CAM3N3Cxc%3DAkDLLykiuh%2ByYKMEp3xg81ZnCHdwbqEfghp5DRcSA%40mail.gmail.com.