Customer Portal

Get Involved. Join the Conversation.


    Simon Kay
    Sort reports from Connect_PHP API
    Topic posted November 19, 2019 by Simon KayBronze Medal: 1,250+ Points 
    14 Views, 1 Comment
    Sort reports from Connect_PHP API
    How can we sort reports we pull from the Connect_PHP API

    So we are using the Connect PHP api to pull our report and we can modify the filters but is there a way to modify to sort order of the report? Since we are only pulling like 10 at a time it would not be possible to sort after the results are returned.

    Code Snippet:



    • Cosimo Galasso

      To sort the data returned by the report you have different options:

      1. Sort the data inside the report, when building it, if it is a custom report.
      2. Sort the data in the PHP script itself based on the criteria you need. (you will surely find a lot of sort algorithm to use)