@revolist/revogrid 3.1.1 → 3.1.5

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.
@@ -6072,6 +6072,9 @@ class SortingPlugin extends BasePlugin {
6072
6072
  let sorted = 0;
6073
6073
  for (let prop in sortingFunc) {
6074
6074
  const cmp = sortingFunc[prop];
6075
+ if (!cmp) {
6076
+ continue;
6077
+ }
6075
6078
  sorted = cmp(prop, a, b);
6076
6079
  if (sorted) {
6077
6080
  break;
@@ -5719,6 +5719,9 @@ class SortingPlugin extends BasePlugin {
5719
5719
  let sorted = 0;
5720
5720
  for (let prop in sortingFunc) {
5721
5721
  const cmp = sortingFunc[prop];
5722
+ if (!cmp) {
5723
+ continue;
5724
+ }
5722
5725
  sorted = cmp(prop, a, b);
5723
5726
  if (sorted) {
5724
5727
  break;
@@ -157,6 +157,9 @@ export default class SortingPlugin extends BasePlugin {
157
157
  let sorted = 0;
158
158
  for (let prop in sortingFunc) {
159
159
  const cmp = sortingFunc[prop];
160
+ if (!cmp) {
161
+ continue;
162
+ }
160
163
  sorted = cmp(prop, a, b);
161
164
  if (sorted) {
162
165
  break;
@@ -90,7 +90,7 @@ export function generateFakeDataObject(config = {}) {
90
90
  }
91
91
  // apply config
92
92
  if (rgCol === order) {
93
- columns[rgCol].order = 'asc';
93
+ columns[rgCol].order = 'desc';
94
94
  }
95
95
  }
96
96
  // apply config
@@ -5715,6 +5715,9 @@ class SortingPlugin extends BasePlugin {
5715
5715
  let sorted = 0;
5716
5716
  for (let prop in sortingFunc) {
5717
5717
  const cmp = sortingFunc[prop];
5718
+ if (!cmp) {
5719
+ continue;
5720
+ }
5718
5721
  sorted = cmp(prop, a, b);
5719
5722
  if (sorted) {
5720
5723
  break;