something
This commit is contained in:
parent
3d2224e7f2
commit
45526a1823
|
@ -27,7 +27,7 @@ export const byLength = (
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
export const byStat = (metric: keyof Stat) => {
|
export const byStat = (metric: keyof Stat | keyof TopicStat) => {
|
||||||
return (a, b) => {
|
return (a, b) => {
|
||||||
const x = (a?.stat && a.stat[metric]) || 0
|
const x = (a?.stat && a.stat[metric]) || 0
|
||||||
const y = (b?.stat && b.stat[metric]) || 0
|
const y = (b?.stat && b.stat[metric]) || 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user