Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of index.php for Widget Sorting of Results #25

Merged
merged 1 commit into from
May 11, 2017

Conversation

GodThor
Copy link
Contributor

@GodThor GodThor commented May 11, 2017

The problem with the widget's sorting of top rated stuff is that the meta_value field is longtext. So, it doesn't properly sort numbers, specifically on the _kksr_casts field. My change is to cast those fields as UNSIGNED, in turn treating them as numbers and sorting properly.

The problem with the widget's sorting of top rated stuff is that the meta_value field is longtext. So, it doesn't properly sort numbers, specifically on the _kksr_casts field. My change is to cast those fields as UNSIGNED, in turn treating them as numbers and sorting properly.
@kamalkhan kamalkhan merged commit 932052e into surveywp:master May 11, 2017
@kamalkhan
Copy link
Contributor

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants