Bug 407506 - Wrong sorting
Summary: Wrong sorting
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-IconView (show other bugs)
Version: 6.1.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-13 18:13 UTC by Honza
Modified: 2022-02-05 17:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments
Wrong sorting (up is right, down is wrong) (379.94 KB, image/jpeg)
2019-05-13 18:13 UTC, Honza
Details
attachment-15971-0.html (2.15 KB, text/html)
2019-05-13 19:10 UTC, Honza
Details
kcmefdnapgdcfhmf.png (689.21 KB, image/png)
2019-05-13 19:10 UTC, Honza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Honza 2019-05-13 18:13:37 UTC
Created attachment 120049 [details]
Wrong sorting (up is right, down is wrong)

SUMMARY
Wrong sorting pictures. When I have pictures 0002.jpg and 0002b.jpg then picture 0002b.jpg is displayed in front of picture 0002.jpg. It is wrong. 
After renaming picture 0002b.jpg to 0002q.jpg then the sorting is OK. The picture 0002.jpg is right in front of picture 0002q.jpg. Look attachment.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
The picture named 0002b.jpg is displayed in front of picture 0002.jpg. It is wrong.

EXPECTED RESULT
The picture named 0002.jpg should have to be in front of picture 0002b.jpg

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Ubuntu 18.04.2 LTS
GNOME: 3.28.2 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2019-05-13 18:31:49 UTC
Which kind of icon view sorting option did you use exactly ?

Look in View/Sort Items and View/Sort Order options you use in album view main menu.

Best
Comment 2 Maik Qualmann 2019-05-13 18:41:21 UTC
I can not reproduce it here. Whether "0002b" or "0002q" the item is always behind "0002".

Maik
Comment 3 Honza 2019-05-13 18:55:27 UTC
Item Sort Order: Ascending (The wrong sorting is also in the case 
Descending, but vice versa)
Sort Item: By Name

In version 6.0.0. everything was OK.

Regards

Honza


Dne 13. 05. 19 v 20:31 bugzilla_noreply@kde.org napsal(a):
> https://bugs.kde.org/show_bug.cgi?id=407506
>
> caulier.gilles@gmail.com changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |caulier.gilles@gmail.com
>
> --- Comment #1 from caulier.gilles@gmail.com ---
> Which kind of icon view sorting option did you use exactly ?
>
> Look in View/Sort Items and View/Sort Order options you use in album view main
> menu.
>
> Best
>
Comment 4 Maik Qualmann 2019-05-13 18:57:06 UTC
Do you use the AppImage?

Maik
Comment 5 Honza 2019-05-13 19:10:31 UTC
Created attachment 120051 [details]
attachment-15971-0.html

Item Sort Order: Ascending (The wrong sorting is also in the case 
Descending, but vice versa)
Sort Item: By Name

In version 6.0.0. everything was OK.

I'm from Czech republic, I use Locale cs-/CZ/.UTF-8. This may be related?

Yes, I use AppImage (digikam-6.1.0-x86-64.appimage).

Regards

Honza

Dne 13. 05. 19 v 20:41 Maik Qualmann napsal(a):
> https://bugs.kde.org/show_bug.cgi?id=407506
>
> Maik Qualmann <metzpinguin@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |metzpinguin@gmail.com
>
> --- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
> I can not reproduce it here. Whether "0002b" or "0002q" the item is always
> behind "0002".
>
> Maik
>
Comment 6 Honza 2019-05-13 19:10:31 UTC
Created attachment 120052 [details]
kcmefdnapgdcfhmf.png
Comment 7 Maik Qualmann 2019-05-14 12:04:08 UTC
Is there a change if you start the AppImage with "LANG=C /path/to/digikam.appimage"?

Maik
Comment 8 Honza 2019-05-14 16:49:29 UTC
Please tell me exactly what a command line should look like.

I tried many ways,

/home/jirka/bin/Digikam/digikam-6.1.0-x86-64.appimage LANG=CZ

/home/jirka/bin/Digikam/digikam-6.1.0-x86-64.appimage LANG=CZ 
/home/jirka/bin/Digikam

/home/jirka/bin/Digikam/digikam-6.1.0-x86-64.appimage LANG=C 
/home/jirka/bin/Digikam

/home/jirka/bin/Digikam/digikam-6.1.0-x86-64.appimage "LANG=C 
/home/jirka/bin/Digikam"


but unsuccesfully


Regards

Honza


Dne 14. 05. 19 v 14:04 Maik Qualmann napsal(a):
> https://bugs.kde.org/show_bug.cgi?id=407506
>
> --- Comment #7 from Maik Qualmann <metzpinguin@gmail.com> ---
> Is there a change if you start the AppImage with "LANG=C
> /path/to/digikam.appimage"?
>
> Maik
>
Comment 9 Maik Qualmann 2019-05-14 17:53:59 UTC
It is actually a locale problem. With my native developer version everything is correct. When I start the AppImage here under a German system locale, I get the same problem.
With "LANG=C digiKam.appImage" (note the LANG variable in front of the AppImage) the sorting is also fine again.

example:
LANG=C /home/jirka/bin/Digikam/digikam-6.1.0-x86-64.appimage

Maik
Comment 10 Maik Qualmann 2019-08-16 13:40:51 UTC

*** This bug has been marked as a duplicate of bug 410980 ***
Comment 11 caulier.gilles 2022-01-19 19:09:07 UTC
Git commit 00e4d5da2948ccdc101cdeeb23f7b05405812436 by Gilles Caulier.
Committed on 19/01/2022 at 19:04.
Pushed by cgilles into branch 'master'.

Great news : AppImage with Qt 5.15.2 compiled under Mageia 7.1 now support ICU
This require to recompile whole AppImage build system on Continuous Deployement server.
This will be done in a few days. I only tested here on my laptop, and i can confirm that ICU work fine now.
Related: bug 406583, bug 425168, bug 418670, bug 410980, bug 413842

M  +2    -3    project/bundles/3rdparty/ext_qt/5.15/CMakeLists.txt

https://invent.kde.org/graphics/digikam/commit/00e4d5da2948ccdc101cdeeb23f7b05405812436
Comment 12 caulier.gilles 2022-02-05 17:38:49 UTC
Hi,

With the ICU support introduced in next 7.6.0 release, this problem is now fixed.

You can test using 7.6.0 pre-release AppImage bundle available here : https://files.kde.org/digikam/

Best Regards

Gilles Caulier