I am setting filter on link field via client script frm.set_query. This is working fine. Now I want to sort this filtered list based on one of the data field of the link field; is there a way to do this?
I have tried adding order by but not working
frm.set_query(“custom_item_packing_instruction”, “items”, function (doc, cdt, cdn) {
return {
“filters”: {
“disabled”: 0,
“item”: row.item_code
},
“order_by”: “conversion_factor”,
};
});