Closed (fixed)
Project:
Views Scored Sort
Version:
1.0.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 May 2025 at 20:26 UTC
Updated:
21 May 2025 at 19:09 UTC
Jump to comment: Most recent
Views. Scored Sort relies on a views_pre_render hook to sort the views. Limits on the view occur in the query, meaning that if a view uses a limit the pre-render hook will sort on the results after the limit has been enforced. So if there's 1000 results, and then a limit of 3 is placed on the results list, the pre_render hook will only sort the 3 results, rather than the 1000 that it should have sorted.
Use a query_alter to remove the limit, but capture the value and send it to the scoring service, then use that value to array_slice.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mdranove commentedComment #4
mdranove commented