@verdocs/js-sdk 4.2.118 → 4.2.121

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.js CHANGED
@@ -265,9 +265,9 @@ function sortFields(fields) {
265
265
  const aPage = a.page || 0;
266
266
  const bPage = b.page || 0;
267
267
  const aX = a.x || 0;
268
- const aY = a.y || 0;
268
+ const aY = (a.y || 0) + (a.height || 0);
269
269
  const bX = b.x || 0;
270
- const bY = b.y || 0;
270
+ const bY = (b.y || 0) + (b.height || 0);
271
271
  if (aPage !== bPage) {
272
272
  return aPage - bPage;
273
273
  }