I have a two dimensional array which has following structure
array = [
["2019-03-11","00986587","LBP"],
["2019-02-23","00462421","USD"],
["2019-05-26","00357853","EUR"],
["2019-09-15","00357382","LBP"]
]
I want to sort the array based on the date (first element of each row).
Looking for the following result:
array = [
["2019-09-15","00357382","LBP"],
["2019-05-26","00357853","EUR"],
["2019-03-11","00986587","LBP"],
["2019-02-23","00462421","USD"]
]
After my research on sort and sort_by i didn't find any solution. Can anyone please help me to solve my problem ? and thank you