• Resolved robinmatt94

    (@robinmatt94)


    If you want to sort the data in the overview by counts, just modify the sort_data function in the page-visit-counter/includes/class-tt-pvc-list-table.php to:

    private function sort_data( $a, $b )
    {
    return $b[‘count’] – $a[‘count’];
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter robinmatt94

    (@robinmatt94)

    return $b[‘count’] – $a[‘count’]; // descanding from high to low
    return $a[‘count’] – $b[‘count’]; // ascending from low to high

    Plugin Author Dotstore

    (@dots)

    Hy @robinmatt94,

    Hope you are doing well!

    Thanks for reaching out. Thanks for the suggestion, We will look over this feature and implement it in future.

    Thank You,
    Multidots

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sort by Counts’ is closed to new replies.