Best rated ordering does not favour number of votes for same-rated items (most voted should appear first)

3 months 2 days ago - 2 months 3 weeks ago #73396 by lipatovroman
Hello!

When I use Top rated order for list views or for module FC displays Items with 5 star ordered by alphabet.





But this behavior is not correct.

In this case List of Top 50 items will always be same.
And item with 5 star rating will be always first only because it name begins from number 1.

It should be ordered basing on count of voters.

So, we have 10 items with 5 star rating.

First should displays item with max votes.

Item1 5star 150votes
Item2 5star 100votes
Item3 5star 90votes
Item4 5star 50votes
Item5 5star 20votes
Item6 4star 190votes
Item7 4star 150votes
Item8 4star 50votes
Item9 4star 5votes

Please Log in or Create an account to join the conversation.

3 months 2 days ago - 2 months 3 weeks ago #73403 by ggppdk
Hello

this is implemented inside the "Unrated" Tab of the voting field

but implemented for the case of 1-9 votes ...

I mean what you ask exists already for items with less that <10 votes


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

3 months 2 days ago - 2 months 3 weeks ago #73404 by ggppdk
Hello

please see my previous answer
for more votes we could probably do a fixed weight factor

"best voted" ordering = #stars * (1 + #votes / 100)


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

3 months 1 day ago - 2 months 3 weeks ago #73406 by lipatovroman

ggppdk wrote: Hello

please see my previous answer
for more votes we could probably do a fixed weight factor

"best voted" ordering = "best voted" ordering = #stars * (1 + #votes / 100)


Hello!
Is it possible to implement?

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago - 2 months 3 weeks ago #73490 by lipatovroman

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago - 2 months 2 weeks ago #73491 by ggppdk
Hello

besides time and risk of introducing bugs
the problem with such "fixes" or "improvements"

is also to decide / find a proper solution
you can not fix / implement something even if it small change without , knowing what to do

i am thinking to do like this

Now we are doing a calculation of a "rating" result that is a floating number 0% to 100%
e.g. 87.75 %
- and then ordering it

but then we are displaying the rating in STEPS of 1%
(rounding to integer during display of voting field, and then using CSS to show it),

so in the above case , instead of ordering float values of 0% - 100%,
we would need to round the rating result to the closest integer 0%, 1%, 2%, etc

and then do
(rating_count is number of votes)

ORDER BY rating DESC, rating_count DESC

thus the items with same display of stars will be ordered according to their number of votes


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago - 2 months 3 weeks ago #73492 by lipatovroman

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago - 2 months 3 weeks ago #73494 by ggppdk
Hello

are you going to test
 best-rated ordering
in these cases ?

- category view (test with and without text search field active)
- search view (test with and without text search field active)
- univesal module


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago #73495 by lipatovroman

ggppdk wrote: Hello

are you going to test
 best-rated ordering
in these cases ?

- category view (test with and without text search field active)
- search view (test with and without text search field active)
- univesal module


Hello
Yes, of course.

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago #73496 by ggppdk
Done with commit
 Improve best rated ordering to so that most voted items will appear before same rated items with less votes 

You can install via URL the branch
https://github.com/FLEXIcontent/flexicontent-cck/archive/3.3.x-stable.zip


You can also test backend items manager (oder by rating column)

Note this is how it will work
- we round to the closes integer percentage 0 - 100 and for those having same value we consider number of votes

decide not to round to 80% or 85%
since the above is done only when voting, not when displaying


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.