From 45526a1823b6a59405fbb7d7a1cb98d487881348 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Wed, 23 Nov 2022 14:57:14 +0300 Subject: [PATCH] something --- src/utils/sortby.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sortby.ts b/src/utils/sortby.ts index 4b03fdaee..fd6cb9c7 100644 --- a/src/utils/sortby.ts +++ b/src/utils/sortby.ts @@ -27,7 +27,7 @@ export const byLength = ( return 0 } -export const byStat = (metric: keyof Stat) => { +export const byStat = (metric: keyof Stat | keyof TopicStat) => { return (a, b) => { const x = (a?.stat && a.stat[metric]) || 0 const y = (b?.stat && b.stat[metric]) || 0