Have loan task (see example below) which is separating by multi-instance loop:
loans[
[loanNo:1, dueDate: 2020-10-10],
[loanNo:2, dueDate: 2020-05-05],
[loanNo:3, dueDate: 2020-07-07]
]
How to make sequence loop to loop by custom order, not by index (0,1,2) but by dueDate so that first element will be closest date 2020-05-05, then 2020-07-07 and etc..