Question about sorting columns with Editor created entries

Question about sorting columns with Editor created entries

SteveAmerigeSASSteveAmerigeSAS Posts: 5Questions: 1Answers: 0

In using Datatables with the Editor plugin, I've noticed that when sorts on columns, cells that contain the '>' or newline characters seem to sort before all other entries in the column. Is there a reason for why this could be occurring?

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Hi,

    Are you using server-side processing? The reason I ask that is that the while space should make no difference with client-side processing. The > however, is sorted higher than [a-zA-Z] since it is lower in ASCII value than the letters even with client-side processing.

    If you wanted a different sort applied you would need to use a custom sorting plug-in if client-side, or modify the server-side script if server-side (typically that might need some kind of change to the database since it is that which will be providing the sort).

    Allan

This discussion has been closed.