Problem sort custom variables JSON results


#1

Hi,
I configured 2 custom variables in Piwik. I’m using the API to obtain values ordered by “nb_visists”.
The request that I used is this:

http://localhost/piwik/?module=API&method=CustomVariables.getCustomVariables&idSite=2&period=range&date=2015-01-19,2015-01-20&format=JSON&filter_sort_column=nb_visits&filter_sort_order=asc&expanded=1&token_auth=…&segment=customVariablePageName2==category;customVariablePageValue2=@/maincategory/

The problem is that the results are not sorted according to the value of “nb_visits” column.
When I use the parameter “filter_sort_column” the results are sorted in a different way, but the order is still wrong.


(Matthieu Aubry) #2

Hi there,

Do you have a URL that shows this bug on the demo.piwik.org ?