@kurakin opened this Issue on July 31st 2009

We have unsorted data in normal table view of Lenght of Visits for now. This looks slightly strange: see before.png attachment.

This simple patch solves the problem (see after.png attachment).

diff -Ebur piwik-4.2.orig/plugins/VisitorInterest/Controller.php piwik-4.2/plugins/VisitorInterest/Controller.php
--- piwik-4.2.orig/plugins/VisitorInterest/Controller.php   2009-07-08 08:19:14 +0400
+++ piwik-4.2/plugins/VisitorInterest/Controller.php    2009-07-31 20:59:21 +0400
@@ -25,6 +25,7 @@
        $view->init( $this->pluginName,  __FUNCTION__, "VisitorInterest.getNumberOfVisitsPerVisitDuration" );

        $view->setColumnsToDisplay( array('label','nb_visits') );
+       $view->setSortedColumn( 'label', 'asc' );
        $view->setColumnTranslation('label', Piwik_Translate('VisitorInterest_ColumnVisitDuration'));
        $view->disableSort();
        $view->disableExcludeLowPopulation();
@kurakin commented on July 31st 2009

Attachment: Unsorted Length of Visits / table view
before.png

@kurakin commented on July 31st 2009

Attachment: Length of Visits / table view, sorted by label
after.png

@robocoder commented on July 31st 2009 Contributor

(In [1345]) fixes #892 - sort Length of Visits by label; thanks kurakin

This Issue was closed on July 31st 2009
Powered by GitHub Issue Mirror