Get array-id of sorted column (server-side processing)

Get array-id of sorted column (server-side processing)

RockbRockb Posts: 97Questions: 0Answers: 0
edited May 2014 in DataTables 1.10

In relating to my index column-suggestion a different, probably more interesting way would be nice. To offer a ranking list, there are sometimes two or more entries/rows with exactly the same value. So with the former index column-version one or more of these entries are ranked worse then others, even if they have actually the same rank.

Example

Index Column | Name | Value

1 | Name1 | 50

2 | Name2 | 60

3 | Name3 | 60

4 | Name4 | 70

To prevent this and make it like

Index Column | Name | Value

1 | Name1 | 50

2 | Name2 | 60

2 | Name3 | 60

3 | Name4 | 70

...is there an option to get the array-id of the sorted column in examples/server_side/scripts/server_processing.php? With this id it would be easy to modify the code I mentioned here.

This discussion has been closed.