@firecms/collection_editor 3.0.0-canary.165 → 3.0.0-canary.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -10475,6 +10475,7 @@
10475
10475
  console.debug("Collections specified in code:", baseCollections);
10476
10476
  console.debug("Collections stored in the backend", storedCollections);
10477
10477
  const result = core.joinCollectionLists(baseCollections, storedCollections, [], modifyCollection);
10478
+ result.sort((a, b) => baseCollections.findIndex((c) => c.id === a.id) - baseCollections.findIndex((c) => c.id === b.id));
10478
10479
  console.debug("Collections after joining:", result);
10479
10480
  return result;
10480
10481
  };