diff options
| author | Niklas Baumstark | 2012-01-25 17:58:06 +0100 |
|---|---|---|
| committer | Niklas Baumstark | 2012-04-10 23:58:08 +0200 |
| commit | 7c2755bcd67968f9646ac3b79432bf45da349246 (patch) | |
| tree | 2514245a1058e387a0b78cd8744ec7b54d8764a7 /background_page.html | |
| parent | 76b981c5a3195eac12054afe2534645cd7610d30 (diff) | |
| download | vimium-7c2755bcd67968f9646ac3b79432bf45da349246.tar.bz2 | |
sort history by last visit time and raise number of history items to be searched
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/background_page.html b/background_page.html index e248043c..b6b72406 100644 --- a/background_page.html +++ b/background_page.html @@ -322,8 +322,7 @@ }, function(history) { // sorting in ascending order, so we can push new items to the end later history.sort(function(a, b) { - // visitCount may be undefined - return (a.visitCount || 0) - (b.visitCount || 0); + return (a.lastVisitTime|| 0) - (b.lastVisitTime || 0); }); cachedHistory = history; callback(cachedHistory); |
