I was beginning to write a bubble sort for this when I thought maybe there is a way to use a function with array.sort() that does the job ?
Here is a (hopefully) clear example of what I have to sort : (file names list)
var array = ['impression_page_1_12_juin','impression_page_1_13_juin','impression_page_2_12_juin','impression_page_2_13_juin']
As you can see there are 2 'page1' on 2 different dates, only characters 19 and 20 in each string are different. I'd like to sort on those 2 characters.
Can Javascript do that straightforward or should I return to my substrings and bubble sort method ?