Bug 318201

Summary: Assigned tags in IconView should be sorted
Product: [Applications] digikam Reporter: Axel Krebs <axel.krebs>
Component: Tags-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles, mike
Priority: NOR    
Version: 3.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.3.0
Sentry Crash Report:
Attachments: 130412_digiKam_Tags_Unsorted.png
130413_digiKam_Tags_Unsorted_2.png

Description Axel Krebs 2013-04-11 18:55:24 UTC
digiKam does _not_ sort tag, when adding/entering these

For this reason, simple search and organisation procedures will fail- there seem not even to be implemented!! 

Reproducible: Always

Steps to Reproduce:
1. when entering tags, didgikam should sort these exceptionless alpha-numerical
2. this could happen while entering the tags, or
3. maybe, even better in backround
Actual Results:  
At the given situation, digiKam does not allow to sort for tags whatever kind (as much as I understand)

Expected Results:  
digiKam should seriously consider aiming a database-standard procedure concerning handling information internally. 

Otherwise, there is a strong risk, that users repeat adding tags and meashing up the tag's database

this is a major issue, as this endangers the stability and compactiness of each database. I suggest to reconsider these, as they are widely accepted basics for database construction rules.
Comment 1 Michael G. Hansen 2013-04-11 19:39:21 UTC
Hi Axel,

where exactly do you see the tags not being sorted? Could you provide a screenshot and mark that area?

Best regards,

Michael
Comment 2 Axel Krebs 2013-04-11 20:00:23 UTC
Created attachment 78819 [details]
130412_digiKam_Tags_Unsorted.png

Michael:

this refers to randomly sorted tags.
They do not foollow _any_ sort order, appearantly.

See pic with tags: "Hinweisschild", "Fahrzeug", "Wasser", "H", F", "W"

Instead of "F", "H" "W".

Hope I could explain, what I mean?

I have just some basic knowledge concerning databases, but i know well,
that there are three(?) steps for the normalisation of database content.

You may want to check this in details, here
<http://en.wikipedia.org/wiki/Database_design>. e.g.


Axel
---
Am 11.04.2013 19:39, schrieb Michael G. Hansen:
> https://bugs.kde.org/show_bug.cgi?id=318201
> 
> Michael G. Hansen <mike@mghansen.de> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |mike@mghansen.de
> 
> --- Comment #1 from Michael G. Hansen <mike@mghansen.de> ---
> Hi Axel,
> 
> where exactly do you see the tags not being sorted? Could you provide a
> screenshot and mark that area?
> 
> Best regards,
> 
> Michael
>
Comment 3 Michael G. Hansen 2013-04-11 20:21:08 UTC
Hi Axel,

my question was more about where in the digikam user interface you encounter the unsorted tags. In the left pane, in the icon view, in a menu, or in the right pane?

Michael
Comment 4 Michael G. Hansen 2013-04-11 20:21:56 UTC
Sorry, I missed the screenshot ;-)
Comment 5 Axel Krebs 2013-04-11 20:47:46 UTC
Created attachment 78822 [details]
130413_digiKam_Tags_Unsorted_2.png

is this "icon view?"

Am 11.04.2013 20:21, schrieb Michael G. Hansen:
> https://bugs.kde.org/show_bug.cgi?id=318201
> 
> --- Comment #3 from Michael G. Hansen <mike@mghansen.de> ---
> Hi Axel,
> 
> my question was more about where in the digikam user interface you encounter
> the unsorted tags. In the left pane, in the icon view, in a menu, or in the
> right pane?
> 
> Michael
>
Comment 6 caulier.gilles 2013-04-12 10:38:42 UTC
As i can see, tags are sorted in your screenshot...

Gilles Caulier
Comment 7 Axel Krebs 2013-04-12 17:20:21 UTC
Am 12.04.2013 10:38, schrieb Gilles Caulier:
> https://bugs.kde.org/show_bug.cgi?id=318201
> 
> Gilles Caulier <caulier.gilles@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |caulier.gilles@gmail.com
> 
> --- Comment #6 from Gilles Caulier <caulier.gilles@gmail.com> ---
> As i can see, tags are sorted in your screenshot...
> 
> Gilles Caulier
> 
As much as I know, all Europeans use the same alphabet, and the sequence
I showed in my attachment was "Hinweisschild", "Fahrzeug", "Wasser",
that means FIRST letter is "H", "F", "W" INSTEAD of "F", "H", "W" for
"Fahrzeug", "Hinweisschild" and "Wasser".

As I indicated, this is NOT a minor issue but rather a major issue in
the context of databases.

You may want to check my wikipedia-link and some of the citations therein.


Axel
Comment 8 Michael G. Hansen 2013-04-13 18:42:33 UTC
Summary: Assigned tags shown below images in the IconView are not sorted. They are also not sorted in the tooltips.
Comment 9 Marcel Wiesweg 2013-04-18 19:45:44 UTC
They are probably sorted by (internal) tag id ;-)
Sorting criteria:
a) tag name
b) tag path
c) hierarchy depth

a - b?
c - a - b?
b - c?
Comment 10 caulier.gilles 2014-08-07 17:16:33 UTC
Git commit cc6c3a9c24a835d12fcd1c42c07f86d3137a05e1 by Gilles Caulier.
Committed on 07/08/2014 at 17:15.
Pushed by cgilles into branch 'master'.

short assigned tags in icon-view
FIXED-IN: 4.3.0

M  +3    -1    digikam/items/imagedelegate.cpp
M  +4    -0    digikam/utils/tooltipfiller.cpp
M  +3    -1    utilities/importui/items/importdelegate.cpp

http://commits.kde.org/digikam/cc6c3a9c24a835d12fcd1c42c07f86d3137a05e1