Sort entries in the 'Bank Reconciliation' DocType according to the 'amount' column


I am working on customizing the ‘Bank Reconciliation’ DocType so that the table that is displayed when the ‘Get Entries’ button is clicked is sorted by amount (i.e. by the ‘Amount’ column) instead of by posting date which is the default. I tried to customize the code( to get it working the way I wanted it to. But all my attempts were futile so please help me.



I am also working on sorting child table . Are you able to do it. Please help me. Thanks