Sorting Numbers from Shortcode
-
Hello, I am loving your plugin to help me display a team leaderboard for a fundraising event. Basically, I will be showing a list of team names that I masked for privacy for this post. But I will be showing their names in column 1 and the dynamically calculated team total dollars raised in column two. I am pulling that number using a shortcode that is working great with your tables. My issue is sorting because the team totals will be changing as people give money to their teams, and I would need to manually resort 10-20x a day for the next month if I cannot have a sorting solution in place. I did some reading on datatables sort order custom commands but the handful I tried are not working. I know that me having a shortcode potentially complicates this a bit, but once the page is loaded and I click on the datatables Tablepress sort arrows, the column sorts perfectly by the dollar value, so the sort functionality works. I would just like to always have the page load with the top dollar amount at the top sorting to the lowest amounts. Is there a custom command I am missing or you know of to make this work. Thank you so much for this! If I can get the sort to consistently show, I am going to take this a step further and get your column rank addon, but I just need to know this sorts properly before going deeper into this. Thank you for your time and for a fantastic plugin!
The topic ‘Sorting Numbers from Shortcode’ is closed to new replies.