Reorder multifield items through javascript
Hi Team,
I have a multifield with 2 fields in which one is date field, On the dialog submit I want to reorder multifield items based on date (oldest date item should show first and it should also store at the jcr node)
Example:
item0 => date : 01/01/1998
name : John
item1 => date : 01/01/1995
name : Ram
item2 => date : 01/01/1990
name : shyam
When I reopen dialog , The oldest date item should show first like below
item0 => date : 01/01/1990
name : shyam
item1 => date : 01/01/1995
name : Ram
item2 => date : 01/01/1998
name : John

Thanks in advance