Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
No matter what you specify for weights in the GROUP BY TYPE SETTINGS in search, no sorting is actually done. The resulting groups come out in whatever order the original results were in. I looked into the code and made a fix for this. A patch is enclosed.
At least two other people have noticed this problem as shown in the group here:
https://groups.drupal.org/node/311323
Thanks!
Comment | File | Size | Author |
---|---|---|---|
ds_search_group_sort.patch | 715 bytes | mikemoretti |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedComment #2
klevyke CreditAttribution: klevyke commentedThe patch is ok.
Comment #3
aspilicious CreditAttribution: aspilicious commentedComment #4
crutch CreditAttribution: crutch commentedThank you, finally got to trying this, it fixes the issues and no errors.
Comment #5
PhilYAmazingly, this patch is still needed in 7.x-2.14 release of Display Suite ;-)
And it works!