How I can sort an array by the first value. Below is the array example
[
[
14th Aug,
8th Aug,
],
[
8th Aug,
22th Aug,
],
[
6th Aug,
14th Aug,
]
]
As result, I need to get a new array such as
[
[
6th Aug,
14th Aug,
],
[
8th Aug,
22th Aug,
],
[
14th Aug,
8th Aug,
]
]
So only the first value must be taken into account for sorting