From 049cec326820522c8c5cdc00e63f5ebdd231422e Mon Sep 17 00:00:00 2001 From: Kai Azim Date: Tue, 17 Feb 2026 22:01:10 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Preserve=20cycle=20order=20when?= =?UTF-8?q?=20exporting=20keybinds=20(#1050)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Loop/Migration/Migrator.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Loop/Migration/Migrator.swift b/Loop/Migration/Migrator.swift index 26db9717..34455aa8 100644 --- a/Loop/Migration/Migrator.swift +++ b/Loop/Migration/Migrator.swift @@ -219,13 +219,6 @@ private extension Migrator { // Handle nested cycle actions if present if var cycle = actions[i]["cycle"] as? [[String: Any]] { - // Sort the cycle actions by direction - cycle.sort { first, second -> Bool in - let firstDir = first["direction"] as? String ?? "" - let secondDir = second["direction"] as? String ?? "" - return firstDir < secondDir - } - // For each action in the cycle for j in 0 ..< cycle.count { // Sort the keybind array in each cycle action