Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Sort integer ascending and put empty cells to the bottom

$
0
0
Hello everyone!

I have some problems with ascending sorting of a column. Here is how my table looks like.

          First events          Second Event         Third event
Team   Position   Points     Position   Points     Position   Points
Team A     1       100          2         90          1        100
Team B                          1        100          3         80
Team C     2        90                                2         90

so it's an overview of teams who competed in three events. the table is sortable for position of each event. Some teams did not compete in all events. When i now want to sort the second event, Team C is in top, which is obivously wrong.

Now I'm trying to find a solution, how i can put empty cells on the bottom of the sorted column. I found a few older threads (yes i searched before starting a new topic) about the same issue, but those solutions don't really seem to work.

I use Wordpress and the Tablepress plugin, which is based on Datatables.

This was the best thread i found about my problem: http://datatables.net/forums/discussion/4025/sorting-to-ignore-empty-cells/p1

Thank you in advance!

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>