We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adde308 commit dc60f86Copy full SHA for dc60f86
packages/utils/src/dataframe.ts
@@ -122,8 +122,13 @@ export function sortableDataFrame(data: DataFrame): DataFrame {
122
}
123
const sorted = all.then(all => {
124
return all.sort((a, b) => {
125
- if (a[orderBy] < b[orderBy]) return -1
126
- if (a[orderBy] > b[orderBy]) return 1
+ /// TODO(SL): rewrite the function, handling every case
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ const valueA: any = a[orderBy]
128
129
+ const valueB: any = b[orderBy]
130
+ if (valueA < valueB) return -1
131
+ if (valueA > valueB) return 1
132
return 0
133
}).slice(start, end)
134
})
0 commit comments