Bug 307334 - Incorrect sorting in table view
Summary: Incorrect sorting in table view
Status: CLOSED FIXED
Alias: None
Product: KEXI
Classification: Applications
Component: Tables (show other bugs)
Version: 2.4.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jarosław Staniek
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-09-24 17:48 UTC by robert leleu
Modified: 2023-04-04 19:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 3.2.0


Attachments
essailiens.kexi (45.00 KB, application/octet-stream)
2012-09-25 12:42 UTC, robert leleu
Details
Result in KEXI 3.2.0 (28.52 KB, image/jpeg)
2023-04-04 19:31 UTC, Jarosław Staniek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robert leleu 2012-09-24 17:48:59 UTC
sorting of a text column shows

Thalasso/Contact/2005/Individuels
Thalasso/Contact/2006/Courriel
Thalasso/Contact/2006
Thalasso/Contact/2006/Spontané
halasso/Contact/2007/Attente

the 3d line should be listed before the 2d



Reproducible: Always
Comment 1 Jarosław Staniek 2012-09-24 21:18:52 UTC
Created attachment 74161 [details]
essailiens.kexi

Thanks for the request, Robert.
If I understand correctly from the example, you need to sort the data by column #3, and then by column #4. Kexi currently offers sorting by one column in the table view, so as soon as you click the #4 column, previous sorting is lost. In contrast to (ediable) tables, (noneditable) queries offer properly sort the data: you can set sorting for column #3 and #4 in one query (in Design view in Sorting column or in SQL view using ORDER BY clause). 

To have similar capability in tables, we will have to add "Complex sorting" dialog to specify list of sorting. Example in LibreOffice Calc:  http://help.libreoffice.org/Calc/Sort_Criteria, screenshot: http://pandaproject.net/images/libre-sort-data.png
Comment 2 robert leleu 2012-09-25 12:42:31 UTC
No, it’s not related te complex sorting.
I join a one table database which displays the erroneous sorting.
Opning the table seems good, because it has been imported in alpha 
order. But check when clicking the 2d field name

Thanks for the information about queries, which indeed sort nice, and is 
useful for me.



la 24/09/2012 23:18, Jarosław Staniek skribis (esperanto estas la unua 
internacia lingvo)
> https://bugs.kde.org/show_bug.cgi?id=307334
>
> Jarosław Staniek <staniek@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |NEEDSINFO
>           Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Jarosław Staniek <staniek@kde.org> ---
> Thanks for the request, Robert.
> If I understand correctly from the example, you need to sort the data by column
> #3, and then by column #4. Kexi currently offers sorting by one column in the
> table view, so as soon as you click the #4 column, previous sorting is lost. In
> contrast to (ediable) tables, (noneditable) queries offer properly sort the
> data: you can set sorting for column #3 and #4 in one query (in Design view in
> Sorting column or in SQL view using ORDER BY clause).
>
> To have similar capability in tables, we will have to add "Complex sorting"
> dialog to specify list of sorting. Example in LibreOffice Calc:
> http://help.libreoffice.org/Calc/Sort_Criteria, screenshot:
> http://pandaproject.net/images/libre-sort-data.png
>
Comment 3 Jarosław Staniek 2014-11-09 23:00:21 UTC
Hi Robert, is it related to but #338808?
Comment 4 Andrew Crouthamel 2018-09-25 03:45:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 02:48:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 6 Jarosław Staniek 2023-04-04 19:31:59 UTC
Created attachment 157851 [details]
Result in KEXI 3.2.0
Comment 7 Jarosław Staniek 2023-04-04 19:32:43 UTC
See the result https://bugs.kde.org/attachment.cgi?id=157851 - it is OK in 3.2.0.