Skip to content

Commit

Permalink
add sorting by volume
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-luger committed Mar 14, 2024
1 parent d24cb44 commit e03cd36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/CraftsList/CraftsList.tsx
Expand Up @@ -55,6 +55,11 @@ const SORT_OPTIONS: SortOption[] = [
}
return true
})
},
{
label: 'Volume',
value: 'volume',
sortFunction: crafts => crafts.sort((a, b) => b.volume - a.volume)
}
]

Expand Down

0 comments on commit e03cd36

Please sign in to comment.