Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Sort history with most recent first
Browse files Browse the repository at this point in the history
Auditors: @bsclifton

Fix #5595
  • Loading branch information
bbondy committed Nov 14, 2016
1 parent 8246d95 commit a9c3304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/about/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class AboutHistory extends React.Component {
get historyDescendingOrder () {
return this.state.history.filter((site) => siteUtil.isHistoryEntry(site))
.sort(historyUtil.sortTimeDescending)
.slice(-500)
.slice(0, 500)
}
clearBrowsingDataNow () {
aboutActions.clearBrowsingDataNow({browserHistory: true})
Expand Down

1 comment on commit a9c3304

@bsclifton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.