0
  var array=['sss_aaa_2013-09-25_part1.txt',
 'sss_aaa_2013-09-25_part2.txt',
 'sss_aaa_2013-09-25_part3.txt',
 'sss_aaa_2013-09-25_part12.txt',
 'sss_aaa_2013-09-25_part4.txt',
 'sss_aaa_2013-09-26_part10.txt',
 'sss_aaa_2013-09-26_part1.txt'];

对于上面的数组,我需要像下面这样排序。我该怎么做。

var result=['sss_aaa_2013-09-25_part1.txt',
 'sss_aaa_2013-09-25_part2.txt',
 'sss_aaa_2013-09-25_part3.txt',
 'sss_aaa_2013-09-25_part4.txt',
 'sss_aaa_2013-09-25_part12.txt',
 'sss_aaa_2013-09-26_part1.txt',
 'sss_aaa_2013-09-26_part10.txt'];
4

0 回答 0