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

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.es.js CHANGED
@@ -10468,6 +10468,7 @@ const mergeCollections = (baseCollections, backendCollections, modifyCollection)
10468
10468
  console.debug("Collections specified in code:", baseCollections);
10469
10469
  console.debug("Collections stored in the backend", storedCollections);
10470
10470
  const result = joinCollectionLists(baseCollections, storedCollections, [], modifyCollection);
10471
+ result.sort((a, b) => baseCollections.findIndex((c2) => c2.id === a.id) - baseCollections.findIndex((c2) => c2.id === b.id));
10471
10472
  console.debug("Collections after joining:", result);
10472
10473
  return result;
10473
10474
  };