Skip to content

Commit 049175c

Browse files
committed
Sort vaults returns by [gross, net] instead of [net, gross]
1 parent 24a691b commit 049175c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/top-vaults/TopVaultsTable.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
let sortOptions = $state<SortOptions>({
5858
key: 'one_month_return_ann',
5959
direction: 'desc',
60-
compareFn: multiValCompare(['one_month_cagr_net', 'one_month_cagr'])
60+
compareFn: multiValCompare(['one_month_cagr', 'one_month_cagr_net'])
6161
});
6262
6363
// sort vaults
@@ -171,25 +171,25 @@
171171
'1M<br/>return ann.<br/>(net/&ZeroWidthSpace;gross)',
172172
'one_month_return_ann',
173173
'desc',
174-
multiValCompare(['one_month_cagr_net', 'one_month_cagr'])
174+
multiValCompare(['one_month_cagr', 'one_month_cagr_net'])
175175
)}
176176
{@render sortColHeader(
177177
'3M<br/>return ann.<br/>(net/&ZeroWidthSpace;gross)',
178178
'three_months_return_ann',
179179
'desc',
180-
multiValCompare(['three_months_cagr_net', 'three_months_cagr'])
180+
multiValCompare(['three_months_cagr', 'three_months_cagr_net'])
181181
)}
182182
{@render sortColHeader(
183183
'Lifetime return ann.<br/>(net/&ZeroWidthSpace;gross)',
184184
'lifetime_return_ann',
185185
'desc',
186-
multiValCompare(['cagr_net', 'cagr'])
186+
multiValCompare(['cagr', 'cagr_net'])
187187
)}
188188
{@render sortColHeader(
189189
'Lifetime return abs.<br/>(net/&ZeroWidthSpace;gross)',
190190
'lifetime_return_abs',
191191
'desc',
192-
multiValCompare(['lifetime_return_net', 'lifetime_return'])
192+
multiValCompare(['lifetime_return', 'lifetime_return_net'])
193193
)}
194194
{@render sortColHeader(
195195
'3m Sharpe',

0 commit comments

Comments
 (0)