Add Markets sort-by: change to sort by percent change
This commit is contained in:
1 parent
8a8aaa752e
commit
e434fe0847
3 files changed
+11
-1
No files matched your search
@@ -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