Add Markets sort-by: change to sort by percent change
This commit is contained in:
parent
8a8aaa752e
commit
e434fe0847
3 changed files with 11 additions and 1 deletions
|
|
@ -38,6 +38,10 @@ func (widget *Markets) Update(ctx context.Context) {
|
|||
markets.SortByAbsChange()
|
||||
}
|
||||
|
||||
if widget.Sort == "change" {
|
||||
markets.SortByChange()
|
||||
}
|
||||
|
||||
widget.Markets = markets
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue