I expect the sorting of data in a Link field to follow the sort_field
and sort_order
configurations specified in the Doctype of the linked document. However, it doesn’t seem to work as expected. Could you suggest a method to sort data in a Link field properly?
I want to sort the data by the number_of_period
field in the order of 6, 12, 18.
I checked the methods for getting data in the Link field and found that this part re-sorts the data again, ignoring the sort_field
and sort_order
configurations specified in the Doctype.