Customer Portal

Get Involved. Join the Conversation.

Topic

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

    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.

    Version:
    3.7
    Code Snippet:

    Comment

     

    • 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)

      CG