New Confidence column in Source Citations tabs sorts incorrectly

Created a set of serial (newspaper) references to test the new* (Page, Date, Conf.) Columns in the Citations tab of object editors. (Attached as Periodical.gramps (1.6 KB), but Importing doesn’t attach the Citations to the Death of the example.gramps home person, Garner von Zieliński, Lewis Anderson Sr. … even though it still points at the handle of a text-editor-deleted Death Event. You’ll have to attach them manually.)

Sorting on the “Confidence Level” (that column label is too long, it should just be “Confidence”… like it is in the Citations view) sorts alphabetically instead on the value (0 to 4) of the confidence level.
Sort on descending Confidence Level gives order: High, Low, Normal (or 4,1,2); but it should be: High, Normal, Low (or 4,2,1).

The Citations view sorts the column correctly.


References:
*“citations gramplet: add date, page, confidence” PR#1180

Is it really important? we have a few source citations.
This columns contains the citation text. This is why the sort is like that.
To do that, we need to add a new hidden column.

It isn’t too important until there are a dozen or more citations. In the Citation view, it seems very useful. And will become increasingly important when Gramps begins to support negative assertions.

Can you make a bug report ?

Bug filed:
https://gramps-project.org/bugs/view.php?id=13036

  • sort Confidence col in Source Citations tabs by SNoiraud · Pull Request #1602