mirror of
https://github.com/Xevion/glance.git
synced 2025-12-15 00:11:53 -06:00
Add Markets sort-by: change to sort by percent change
This commit is contained in:
@@ -38,6 +38,10 @@ func (widget *Markets) Update(ctx context.Context) {
|
||||
markets.SortByAbsChange()
|
||||
}
|
||||
|
||||
if widget.Sort == "change" {
|
||||
markets.SortByChange()
|
||||
}
|
||||
|
||||
widget.Markets = markets
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user