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.
Problem/Motivation
Some times a situation comes up where we want to show one language before any others (such as the language of the current node).
Proposed resolution
Add a sort handler, so we can sort on a specific language before any others, as described in https://stackoverflow.com/questions/14104055/ordering-by-specific-field-...
we do ORDER BY name = 'core' DESC
, which works in PostgreSQL & MySQL
Remaining tasks
Review patch
User interface changes
Screenshots:
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#3 | 2708535-2.patch | 4.33 KB | stefan.r |
| |||
#2 | 2708535-1.patch | 4.3 KB | stefan.r |
| |||
options.png | 114.64 KB | stefan.r | |
admin.png | 102.16 KB | stefan.r |
Comments
Comment #2
stefan.r CreditAttribution: stefan.r commentedComment #3
stefan.r CreditAttribution: stefan.r commentedComment #5
stefan.r CreditAttribution: stefan.r commentedComment #6
stefan.r CreditAttribution: stefan.r commentedThat was a testbot fluke, no way that test should fail
Comment #8
dawehnerDid some minor codestyle corrections ...
Thank you for this addition!
Please open a dedicated core issue about it