sorting problem in a digikam album

Maik Qualmann metzpinguin at gmail.com
Sat Nov 16 19:54:46 GMT 2024


I can't see some file names because they are shortened. If they contain a 
version number (_vxx) then we intervene in the sorting because these should 
come after the original image. However, sometimes the sorting is incorrect, 
and I want to fix that.

Maik

Am Samstag, 16. November 2024, 20:16:44 Mitteleuropäische Normalzeit schrieb 
Lukas Jirkovsky:
> Hello Maik,
> I'm pretty sure it's not correct according to the natural sort order.
> Dolphin shows the correct order. Check the image _DSC2764.jpg I
> highlighted.
> 
> The order is (skipping some images in between):
> 
> _DSC2757.jpg
> ...
> _DSC2765.jpg
> _DSC2771.jpg
> ...
> _DSC2764.jpg
> 
> There is no way _DSC2764.jpg comes after _DSC2765.jpg using any sort
> algorithm.
> 
> The semi-good news is that your suggestion actually helped me fix it.
> I switched the comparison to Normal and it indeed changed the album to
> being sorted according to the normal alphanumeric order. I then
> switched back to Natural and suddenly everything got sorted correctly.
> 
> This makes me convinced it's a bug because it got fixed as suddenly as
> it broke. The problem is there's no way to debug it anymore.
> 
> Lukas
> 
> On Sat, 16 Nov 2024 at 17:43, Maik Qualmann <metzpinguin at gmail.com> wrote:
> > The sorting is correct. It is a sorting according to the natural string
> > comparison (follow numbering and separators). A test here with the Dolphin
> > file manager shows the same sorting.
> > 
> > But you can set the string comparison to Normal in the digiKam settings
> > under Miscellaneous -> Behavior.
> > 
> > https://docs.digikam.org/en/setup_application/miscs_settings.html#behavior
> > -settings
> > 
> > Maik
> > 
> > Am Samstag, 16. November 2024, 16:21:21 Mitteleuropäische Normalzeit
> > schrieb> 
> > Lukas Jirkovsky:
> > > Hello guys,
> > > the sorting in one of my albums suddenly became quite weird. I didn't
> > > find anything in the settings, but I want to check before submitting a
> > > bug report.
> > > 
> > > As can be seen in the attached screenshots, what I have are basically
> > > 
> > > three "locally-sorted" groups:
> > >   1. _DSC2748.jpg to _DSC2771.jpg
> > >   2. all photos starting with 00-
> > >   3. _DSC2764.jpg and on
> > > 
> > > The items in each group are sorted within the group, but the items are
> > > randomly scattered among groups. Eg. the first group has items
> > > _DSC2761 - _DSC2763.jpg and _DSC2765.jpg. However, the _DSC2764.jpg is
> > > actually in the third group.
> > > 
> > > My settings are:
> > >   * Sort Albums -> By Folder
> > >   * Sort Items -> By Name / By Path (both behave exactly the same)
> > >   * Item Sort Order -> Ascending
> > >   * Separate Items -> Flat List
> > > 
> > > Is this some hidden feature that I accidentally enabled, or a bug?
> > > 
> > > Thanks,
> > > Lukas






More information about the Digikam-users mailing list