I have the following set of array of strings, where I need to rearrange the final output based upon the dates, which need to be sorted earliest to oldest
[
"2015-08, xyz, 4",
"2016-03, abc, 5",
"2015-12, ter, 76",
"2015-12, rep, 14"
]
The final output needs to looks like
[
"2016-03, abc, 5",
"2015-12, ter, 76, rep, 14",
"2015-08, xyz, 4"
]
How can i go about doing this?