something

This commit is contained in:
tonyrewin 2022-11-23 14:57:14 +03:00
parent 3d2224e7f2
commit 45526a1823

View File

@ -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