Fix sort in rank plot

This commit is contained in:
Naoto Mizuno committed 2023-11-30 15:24:16 +09:00
1 parent 9eeda40a02
commit bee7c97009
1 file changed
+1 -1
+1 -1
View File
@@ -274,7 +274,7 @@ const getColors = (values: number[]): number[] => {
}
const getOrderWithSameOrderAveraging = (values: number[]): number[] => {
const sortedValues = values.slice().sort()
const sortedValues = values.slice().sort((a, b) => a - b)
const ranks: number[] = []
values.forEach((value) => {
const firstIndex = sortedValues.indexOf(value)