Issue Bug New Orphaned

#99894Sorting translated domain entities breaks when sorting translated entity below not translated entity in list view

Denis Mir 02/09/23, 10:14 updated 06/28/24, 13:18

Description

Let us assume the following case of three domain entity records:

A (available in language UID 0 and 1)
B (available in language UID 0 and 1)
C (available only in language UID 0)

Now let us sort B below C in the list view with the arrows. (so sorting the translated element below the non translated element)

We would expect to have the following sorting.

Language UID 0:

A, C, B

Language UID 1:

A, B

What happens is that the sorting for language UID 0 is OK but the sorting for language UID 1 is now:

B, A

I have also attached screenshots of the database result after sorting. One for language UID 0 (OK) and language UID 1(bug).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Sorting translated domain entities breaks when sorting translated entity below not translated entity in list view Resolves: #99894 Releases: main