Authored by xuqi

search history sort with date.Review by:@梁志锋

@@ -71,8 +71,8 @@ $('#search').on('touchend', function() { @@ -71,8 +71,8 @@ $('#search').on('touchend', function() {
71 71
72 if (historys && historys.length > 0) { 72 if (historys && historys.length > 0) {
73 historys = historys.split(ranToken); 73 historys = historys.split(ranToken);
74 - for (i = 0; i < historys.length; i++) {  
75 - history = historys[i]; 74 + for (i = historys.length; i > 0; i--) {
  75 + history = historys[i - 1];
76 76
77 if (history === '') { 77 if (history === '') {
78 continue; 78 continue;