In my plugin when i choose the metric to plot in my graph, it is not sort the way i want to

Hi there,

I use piwik to monitor my application. In this perspective, i developed some plugins to monitor personalized information.
My problem occurs when i choose the metric to plot in my graph, it doesn’t sort the metrics the way i want.
At beginning, the graph value are sorted by dates but when i decided to show a specific metric it is sort by label.

But when i choose a metric,
For instance, if i decide to not show the second one, like this :

It is now sort by label, the result is ( January 2016 - August 2014 - August2015, …)

For information, in my plugin’s controller, i ask to sort it by date.
I am using Piwik 2.16,
Thanks for the help you can provide me=)

Actually i found the solution, just add

$view->requestConfig->disable_generic_filters=true;

To your plugin’s controller,
see ya,