diff --git a/packages/desktop-client/public/data-file-index.txt b/packages/desktop-client/public/data-file-index.txt
index 6924fb5a779a2f9d8b16fe6d35eb1cc9bbd071c1..579d92a161a7096882e43d72b4853ea7cd48440f 100644
--- a/packages/desktop-client/public/data-file-index.txt
+++ b/packages/desktop-client/public/data-file-index.txt
@@ -1,17 +1,17 @@
 default-db.sqlite
-migrations/1632571489012_remove_cache.js
-migrations/1615745967948_meta.sql
-migrations/1555786194328_remove_category_group_unique.sql
-migrations/1567699552727_budget.sql
-migrations/1608652596044_trans_views.sql
 migrations/1548957970627_remove-db-version.sql
-migrations/1561751833510_indexes.sql
 migrations/1550601598648_payees.sql
+migrations/1555786194328_remove_category_group_unique.sql
+migrations/1561751833510_indexes.sql
+migrations/1567699552727_budget.sql
 migrations/1582384163573_cleared.sql
-migrations/1618975177358_schedules.sql
-migrations/.force-copy-windows
 migrations/1597756566448_rules.sql
-migrations/1616167010796_accounts_order.sql
 migrations/1608652596043_parent_field.sql
+migrations/1608652596044_trans_views.sql
 migrations/1612625548236_optimize.sql
 migrations/1614782639336_trans_views2.sql
+migrations/1615745967948_meta.sql
+migrations/1616167010796_accounts_order.sql
+migrations/1618975177358_schedules.sql
+migrations/1632571489012_remove_cache.js
+migrations/.force-copy-windows
diff --git a/packages/loot-core/bin/copy-migrations b/packages/loot-core/bin/copy-migrations
index 414f554f0d294b3d371360366646bf95d09cf176..7e3d3a3d21be38d7d73f0f615010a48b9d78bebe 100755
--- a/packages/loot-core/bin/copy-migrations
+++ b/packages/loot-core/bin/copy-migrations
@@ -10,7 +10,7 @@ $(
   mkdir ./data;
   cp -r ../../loot-core/migrations ./data;
   cp ../../loot-core/default-db.sqlite ./data;
-  cd data && find * -type f > ../data-file-index.txt;
+  cd data && find * -type f | sort > ../data-file-index.txt;
 )
 
 # Copy them to the mobile app