[09.02.2017 - 10:40:06][NOTICE] - Begin iterating over invoices from Teamleader..
[08.02.2017 - 10:24:26][NOTICE] - Begin iterating over invoices from Teamleader..
[08.02.2017 - 10:29:24][NOTICE] - Begin iterating over invoices from Teamleader..
This piece of code generates the above results:
var data = allText.split("\n");
for(var i = 0, len = data.length; i < len; i++){
console.log(data[i]);
}
Can we sort the array based on the date and time provided?
Here's an example of how the sorted array should appear:
[09.02.2017 - 10:40:06][NOTICE] - Begin iterating over invoices from Teamleader..
[08.02.2017 - 10:29:25][NOTICE] - Begin iterating over invoices from Teamleader..
[08.02.2017 - 10:24:26][NOTICE] - Begin iterating over invoices from Teamleader..