@overmap-ai/core 1.0.51-bulk-form-submission.1 → 1.0.51-bulk-form-submission.2

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.
@@ -3476,13 +3476,13 @@ var __publicField = (obj, key, value) => {
3476
3476
  const revisionA = formRevisionA.revision;
3477
3477
  const revisionB = formRevisionB.revision;
3478
3478
  if (revisionA === "Pending" && revisionB === "Pending") {
3479
- return formRevisionA.submitted_at < formRevisionB.submitted_at ? 1 : -1;
3479
+ return formRevisionA.submitted_at < formRevisionB.submitted_at ? -1 : 1;
3480
3480
  } else if (revisionA === "Pending") {
3481
- return -1;
3482
- } else if (revisionB === "Pending") {
3483
3481
  return 1;
3482
+ } else if (revisionB === "Pending") {
3483
+ return -1;
3484
3484
  } else {
3485
- return revisionA < revisionB ? 1 : -1;
3485
+ return revisionA < revisionB ? -1 : 1;
3486
3486
  }
3487
3487
  };
3488
3488
  const initialState$5 = {