Bug report #1366

table sort order incorrect

Added by Paolo Cavallini about 14 years ago. Updated over 13 years ago.

Assignee:nobody -
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11426


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

Sort.png (35.5 KB) Paolo Cavallini, 2008-10-19 09:20 AM

Associated revisions

Revision 1c5b97c9
Added by Werner Macho over 8 years ago

[TRANSUP] uk fixes #1366

Signed-off-by: Werner Macho <>


#1 Updated by Markus Neteler about 14 years ago

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

#2 Updated by Paolo Cavallini about 14 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 ".")

#3 Updated by Markus Neteler about 14 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?

#4 Updated by Paolo Cavallini about 14 years ago

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

#5 Updated by Marco Hugentobler about 14 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

Fixed in


#6 Updated by Anonymous over 13 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF