Skip to content

Commit

Permalink
make profit sorting more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-luger committed Sep 3, 2024
1 parent 277a626 commit 5f2fd4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/FlipTracking/FlipTracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ const SORT_OPTIONS: SortOption[] = [
sortFunction: flips => flips.sort((a, b) => b.sellTime.getTime() - a.sellTime.getTime())
},
{
label: 'Profit ',
label: 'Profit (highest => lowest)',
value: 'profitDec',
sortFunction: flips => flips.sort((a, b) => b.profit - a.profit)
},
{
label: 'Profit ',
label: 'Profit (lowest => highest)',
value: 'profitAsc',
sortFunction: flips => flips.sort((a, b) => a.profit - b.profit)
},
Expand Down

0 comments on commit 5f2fd4a

Please sign in to comment.