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:

options

admin

API changes

N/A

Data model changes

N/A

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stefan.r created an issue. See original summary.

stefan.r’s picture

Status: Active » Needs review
FileSize
4.3 KB
stefan.r’s picture

Status: Needs review » Needs work

The last submitted patch, 3: 2708535-2.patch, failed testing.

stefan.r’s picture

Issue summary: View changes
stefan.r’s picture

Status: Needs work » Needs review

That was a testbot fluke, no way that test should fail

  • dawehner committed 7a4e5ab on 7.x-3.x authored by stefan.r
    Issue #2708535 by stefan.r: Allow users to sort on a specific language,...
dawehner’s picture

Title: Allow users to sort on a specific language, showing it before any others » Allow users to sort on a specific language, showing it before any otherst a
Status: Needs review » Fixed

Did some minor codestyle corrections ...

Thank you for this addition!

Please open a dedicated core issue about it

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.