Bug 408095 - Sort items by manual
Summary: Sort items by manual
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemsSort (show other bugs)
Version: 6.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-30 07:53 UTC by andrej.valencic
Modified: 2022-02-20 08:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
View sorted by date (231.00 KB, image/jpeg)
2019-05-30 07:54 UTC, andrej.valencic
Details
View sorted by manual (214.50 KB, image/jpeg)
2019-05-30 07:55 UTC, andrej.valencic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrej.valencic 2019-05-30 07:53:30 UTC
SUMMARY
When choosing View -> Sort  Items -> By Manual they are immediately sorted by name in Thumbs view

STEPS TO REPRODUCE
1. Have some pictures from different sources (camera, Phone, ..) which have names started by different letter (see attachments)
2. View -> Sort Items -> ¸By Creation Date
3. View -> Sort Items -> By Manual

OBSERVED RESULT
When I do the point 3. from above all the pictures are automatically rearranged and sorted by filename. For example: IMG_*** files from my phone are all displayed before P***** files from my camera. To test this I renamed one of the pictures and again the sorting "jumps" to filename.  

EXPECTED RESULT
I would like to see that after choosing manual sort the pictures' sorting order stays as it was before. I found it very inconvenient to re-sort manually pictures that were made by different devices and have different names, especially when there are a lot of them.


SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
KDE Frameworks 5.57.0
Qt Version: Qt 5.12.3 (built against 5.12.3)

ADDITIONAL INFORMATION

I would also like to add something to wishlist: would it be possible (in some future version of digiKam) to choose sorting method also for individual albums - one sorted by date, another one by manual?
Comment 1 andrej.valencic 2019-05-30 07:54:25 UTC
Created attachment 120389 [details]
View sorted by date
Comment 2 andrej.valencic 2019-05-30 07:55:11 UTC
Created attachment 120390 [details]
View sorted by manual
Comment 3 Maik Qualmann 2019-05-30 08:02:41 UTC
*** Bug 403626 has been marked as a duplicate of this bug. ***
Comment 4 Maik Qualmann 2019-05-31 20:07:24 UTC
Git commit bff98bd59077ad6e740f5d32654678bf1071e2cf by Maik Qualmann.
Committed on 31/05/2019 at 20:05.
Pushed by mqualmann into branch 'master'.

use creation date as fallback for manual item sort
I think it's the best choice for most users.
Using the last sort option also creates an
opaque behavior.
This does not affect views that have
already been sorted manually.
FIXED-IN: 6.2.0

M  +2    -1    NEWS
M  +10   -1    core/libs/database/models/itemsortsettings.cpp

https://invent.kde.org/kde/digikam/commit/bff98bd59077ad6e740f5d32654678bf1071e2cf
Comment 5 Maik Qualmann 2019-06-18 06:07:36 UTC
Git commit 2b8c901f728bf92e31050e904cc7775dbb267470 by Maik Qualmann.
Committed on 18/06/2019 at 06:06.
Pushed by mqualmann into branch 'master'.

add two manual sort options, fallback as name or date
Related: bug 408782
FIXED-IN: 6.2.0

M  +2    -1    NEWS
M  +3    -1    core/app/dragdrop/itemdragdrop.cpp
M  +34   -31   core/app/main/digikamapp_setup.cpp
M  +19   -5    core/libs/database/models/itemsortsettings.cpp
M  +4    -7    core/libs/database/models/itemsortsettings.h

https://invent.kde.org/kde/digikam/commit/2b8c901f728bf92e31050e904cc7775dbb267470