From 19b1ef72f7a87a8cbfc374fc8682004489a0a114 Mon Sep 17 00:00:00 2001 From: linxianxi <904492381@qq.com> Date: Thu, 23 May 2024 17:04:30 +0800 Subject: [PATCH] chore: update logic --- src/utils/algorithmUtil.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/algorithmUtil.ts b/src/utils/algorithmUtil.ts index 28a5fd6..bab675f 100644 --- a/src/utils/algorithmUtil.ts +++ b/src/utils/algorithmUtil.ts @@ -101,6 +101,5 @@ export function generateIndexesWithSticky( } }); - indexArray.sort((a, b) => a - b); - return indexArray; + return indexArray.sort((a, b) => a - b); }