Bug 485823 - Sort by name
Summary: Sort by name
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemsSort (other bugs)
Version First Reported In: 8.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 22:57 UTC by mlh.kiwi
Modified: 2024-04-20 06:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.4.0
Sentry Crash Report:


Attachments
attachment-4146335-0.html (1.96 KB, text/html)
2024-04-20 06:23 UTC, mlh.kiwi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mlh.kiwi 2024-04-19 22:57:38 UTC
20240414075326_t2 is before 20240414075326 when sorting by name

Is this a bug? 

I think it should be "When sorting by name in alphanumeric order, 20240414075326_t2 would come after 20240414075326. This is because the underscore character (_) is considered to be greater than numbers in ASCII value. Therefore, any string with an underscore would come after a string with only numbers when sorted in ascending order. So, 20240414075326_t2 is not before 20240414075326 when sorting by name. It’s actually after it. I hope this helps! "
Comment 1 mlh.kiwi 2024-04-19 23:01:21 UTC
I would also like to ask a question about the sort by date (if the date is the same, same time, same seconds ect how does it sort? Based of name?  If so this error affect that as well)
Comment 2 caulier.gilles 2024-04-20 02:20:35 UTC
Witch OS did you use ?
Comment 3 mlh.kiwi 2024-04-20 02:23:00 UTC
(In reply to caulier.gilles from comment #2)
> Witch OS did you use ?

Windows 10
Comment 4 mlh.kiwi 2024-04-20 03:01:53 UTC
Can you confirm that this is a bug rather than the intended way of working?
Comment 5 Maik Qualmann 2024-04-20 06:16:08 UTC
The sorting corresponds to the "natural" string comparison. There is the possibility to take the punctuation into account. When I open a folder created with your example in Dolphin (file manager of the KDE desktop on Linux), I get the same sorting as in digiKam.
However, you have the option of achieving your sorting if you set the string comparison to "Normal" under Miscellaneous-> Behavior in the digiKam setup.

Maik
Comment 6 mlh.kiwi 2024-04-20 06:23:51 UTC
Created attachment 168706 [details]
attachment-4146335-0.html

Thanks for the help! It works!

On Sat, 20 Apr 2024, 6:16 pm Maik Qualmann, <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=485823
>
> Maik Qualmann <metzpinguin@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>    Version Fixed In|                            |8.4.0
>                  CC|                            |metzpinguin@gmail.com
>              Status|REPORTED                    |RESOLVED
>          Resolution|---                         |WORKSFORME
>
> --- Comment #5 from Maik Qualmann <metzpinguin@gmail.com> ---
> The sorting corresponds to the "natural" string comparison. There is the
> possibility to take the punctuation into account. When I open a folder
> created
> with your example in Dolphin (file manager of the KDE desktop on Linux), I
> get
> the same sorting as in digiKam.
> However, you have the option of achieving your sorting if you set the
> string
> comparison to "Normal" under Miscellaneous-> Behavior in the digiKam setup.
>
> Maik
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.