You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
German umlauts appear after sorting at the end of the list instead of in their correct place.
JavaScript localeCompare-Method should be used instead of greater/less-comparison.
For example:
Correct sorting would be:
Am, An, Ao, Aö, Ap, Aq
Wrong sorting in jqGrid is:
Am, An, Ao, Ap, Aq, Aö
The error occurs in the function this._compare by using binary greater-/less-than comparison: (Versions 5.5.4 and before)
529: this._compare = function (a, b, d) {
...
552: if (a <b) {return -d;}
553: if (a> b) {return d;}
554: return 0;
Hotfix by using the JS localeCompare()-method:
552:-3 if (typeof a === "string") {
552:-2 return a.localeCompare(b) * d;
552:-1 } else {
552: if (a <b) {return -d; }
553: if (a> b) {return d; }
554: return 0;
554:+1 }
The text was updated successfully, but these errors were encountered:
German umlauts appear after sorting at the end of the list instead of in their correct place.
JavaScript localeCompare-Method should be used instead of greater/less-comparison.
For example:
Correct sorting would be:
Am, An, Ao, Aö, Ap, Aq
Wrong sorting in jqGrid is:
Am, An, Ao, Ap, Aq, Aö
The error occurs in the function this._compare by using binary greater-/less-than comparison: (Versions 5.5.4 and before)
Hotfix by using the JS localeCompare()-method:
The text was updated successfully, but these errors were encountered: