Sorting of date in child table

Hi,
Is there any way that, we can set a date filed in ascending/descending order in a chld table?

Regards
Ruchin Sharma

If you want to sort the rows in child table according to some field (date), it’s not possible out of the box.
But, you can write custom code on_update doctype event, to sort the rows in child table.

did you find solution , or even example of code ?