I'm using Joomla 2.5 and K2 2.5.7. I have a category with posts with a different number of votes. In the front end, I need to sort the items of this category by number of votes.
I re-configured standard stars rating systems to simple "Give one vote" system.
I need this for a ranking order page, so it will have items with the largest number of votes on the top.
What I have
I have my MVC template for K2 category. I was wondering, if sorting $this->leading
in category.php is the right to go for.
If it is, how can I do it? With var_dump
there is variable numOfVotes
which carry real number of votes. How can I sort this object by this var?
Thank you very much!