From d4b74bf3d24bbda68db2b4f45446066849431a7b Mon Sep 17 00:00:00 2001 From: Lukas Bach Date: Thu, 18 Jan 2024 22:17:17 +0100 Subject: [PATCH] fix: reverse insertion order (#315) --- packages/core/src/useGetOriginalItemOrder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/useGetOriginalItemOrder.ts b/packages/core/src/useGetOriginalItemOrder.ts index aeb51b90e..8ead825bb 100644 --- a/packages/core/src/useGetOriginalItemOrder.ts +++ b/packages/core/src/useGetOriginalItemOrder.ts @@ -16,7 +16,7 @@ export const useGetOriginalItemOrder = () => { ] as const ) // eslint-disable-next-line @typescript-eslint/no-unused-vars - .sort(([_, aPos], [_2, bPos]) => bPos - aPos) + .sort(([_, aPos], [_2, bPos]) => aPos - bPos) .map(([item]) => item) ); };