Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1366 closed bug (fixed)

table sort order incorrect

Reported by: pcav Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

The order of sorting for GRASS tables when clicking on the column header is incorrect (see attached png)

Attachments (1)

Sort.png (35.5 KB ) - added by pcav 16 years ago.

Download all attachments as: .zip

Change History (7)

by pcav, 16 years ago

Attachment: Sort.png added

comment:1 by neteler, 15 years ago

Must Fix for Release: NoYes
Priority: minor: annoyance or enhancementmajor: does not work as expected

Paolo, was "area" a numeric column? If yes, probably string sorting is wrongly used here.

comment:2 by pcav, 15 years ago

Yes, it was numeric, whereas the order appears string-based. I guess it might have to do with commas ("," is used for decimals in our locale, whereas grass tables show a ".")

comment:3 by neteler, 15 years ago

I do remember a similar bug in QGIS fixed 1-2 years ago. If the comma is the issue, then the data should be mapped to C Locale first, then sorted.

Can you try to run QGIS in English locale and see if it works?

comment:4 by pcav, 15 years ago

Component: GRASSVectors

It is not working for double and real fields, even if LANG=C. It appears a general problem, as it appears for shp layers too

comment:5 by mhugent, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r9595

Marco

comment:6 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.