Skip to content

Commit

Permalink
fix item sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bingo committed Aug 21, 2020
1 parent 37dd251 commit c113629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ History.prototype._save = function(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)
{
Expand Down

0 comments on commit c113629

Please sign in to comment.