[Digikam-devel] [Bug 158868] Non natural album sorting

Arnd Baecker arnd.baecker at web.de
Fri Mar 7 08:11:01 GMT 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=158868         




------- Additional Comments From arnd.baecker web de  2008-03-07 09:11 -------
This is also true for current svn.

The resorting seems to be done in  void AlbumFolderView::resort()
which calls AlbumFolderView::reparentItem .
However, I cannot see that any sorting takes place in the case of the folder
view, namely, in each step
    if (newParent)
        newParent->insertItem(folderItem);
    else
        insertItem(folderItem);
is done
To achieve some ordering here, the insertItem should not happen
at the end of the list, but at the right place.
Does this analysis make sense?

Actually, when ordering folders by date, the parents are correctly
sorted by date, but the items below come in a random order.
Origin of the problem is the same.



More information about the Digikam-devel mailing list