Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • value1 = first field value to compare
  • value2 = second field value to compare
  • fieldName = (version 5.6.0 and newer) name of the field that the grid is sorted by
  • isDescending = (version 5.6.0 and newer) true if sorting in descending sequence, false otherwise
  • fieldDateFormat= (version 5.14.1 and newer) date format of the field that the grid is sorted by, if the field is not a date null will be passed instead. 

Example:

Code Block
pui.gridSort = function(value1, value2, fieldName, isDescending, fieldDateFormat) {
 if (value1 > value2) return -1;
 else return 1;
}

...