Ticket #1366 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

table sort order incorrect

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

Description

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

Attachments

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

Change History

Changed 5 years ago by pcav

Changed 5 years ago by neteler

  • priority changed from minor: annoyance or enhancement to major: does not work as expected
  • must_fix changed from No to Yes

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

Changed 5 years ago by pcav

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 ".")

Changed 5 years ago by neteler

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?

Changed 5 years ago by pcav

  • component changed from GRASS to Vectors

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

Changed 5 years ago by mhugent

  • status changed from new to closed
  • resolution set to fixed

Fixed in r9595

Marco

Changed 4 years ago by anonymous

  • milestone Version 1.0.0 deleted

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.