...
- value1 = first field value to compare.
- value2 = second field value to compare.
- fieldName = (Available in Version 5, Fix Pack 6.0 and later) name of the field that the grid is sorted byisDescending =. (Available in Version 5, Fix Pack 6.0 and later)
- isDescending =true if sorting in descending sequence, false otherwisefieldDateFormat =. (Available in Version 5, Fix Pack 146.0 and later)later)
- fieldDateFormat = date format of the field that the grid is sorted by, if the field is not a date null will be passed instead. (Available in Version 5, Fix Pack 14.0 and later)
Example:
Code Block |
---|
pui.gridSort = function(value1, value2, fieldName, isDescending, fieldDateFormat) { if (value1 > value2) return -1; else return 1; } |
...