Skip to content

Commit

Permalink
Revert "Ref brave/brave-ios#7168: Update News widget ordering to be b…
Browse files Browse the repository at this point in the history
…ased on recency" (brave/brave-ios#7309)

This reverts the change that sorted News widget items by recency instead of score
  • Loading branch information
kylehickinson authored Apr 21, 2023
1 parent bf10f3e commit db9a982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/BraveWidgets/News Topics/NewsTopicsModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct NewsTopic: Decodable, Comparable, Identifiable, Hashable {
}

static func < (lhs: Self, rhs: Self) -> Bool {
return lhs.date < rhs.date
return lhs.score < rhs.score
}

var id: String {
Expand Down

0 comments on commit db9a982

Please sign in to comment.