We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #2845961
Chart Sorting Default - DESC
Closed

Comments

  • Eric started the conversation

    Is it possible to make the default sort order for all columns with sorting turned on Desc.  

    I know how to turn the default sort order on for the primary column, but I'm talking about the default sort order for every column that you press the column header on.  Right now you click it and it sorts ascending, then a second click will make it descending.  I just want it so that with one button click on any column it defaults to descending (largest to smallest).


  •  2,576
    Aleksandar replied

    Hello Eric

    Firstly, I'd like to apologize for the late response!

    What you're looking for is not possible with the plugin's built-in features, but I will reach out to our developers and see if there's a way to achieve this.

    We'll get back to you as soon as we have some news.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Eric replied

    No worries.


    Thank you, I actually figured this one out. 

    class.wpdatatable.php file

     if(isset($_POST['order'][$i]['dir']) && in_array($_POST['order'][$i]['dir'],['asc','desc'])){

    $tempOrderDirection = addslashes($_POST['order'][$i]['dir']);

    $orderDirection = $tempOrderDirection === 'asc' ? 'DESC' : 'ASC';


    I reversed the order.  It isn't ideal as I know I'll have to change this whenever the tool is updated, but it works.  Just passing along for awareness in case it helps anyone else out.  





  • [deleted] replied

    Hi Eric!

    Thank you so much for the advice and for letting us know that you have found a solutionsmile.png

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.