fix item sort.

pull/25/head
Bingo 4 years ago
parent 37dd25122a
commit c113629b8c
  1. 2
      lib/history.js

@ -228,7 +228,7 @@ History.prototype._save = function(block)
{ {
this._items.unshift(block); this._items.unshift(block);
this._items = _.sortBy( this._items, 'height', false ); this._items = _.orderBy( this._items, 'height', "desc" );
if(this._items.length > MAX_HISTORY) if(this._items.length > MAX_HISTORY)
{ {

Loading…
Cancel
Save