[Qgis-user] How to sort integer value in attributes table

Amedeo Fadini amefad at gmail.com
Fri Aug 12 01:24:26 PDT 2016


Hi everybody, don't know if it's been in this way from the beginning,
but today I've noticed that I'm not able to sort the attribute table
by a numeric value: it's always managed as a text.

I have a vector layer with contour lines, each has an attribute
"quote" integer. Qhen I try to sort it by quote i have this result:

____|    quote|
     1|       100|
     2|     1000|
     3|     1025|
     4|       105|
     5|     1050|
     6|     1075|
     ..|     .....
1640|      975|

instead of:

____|    quote|
     1|       100|
     2|       105|
     3|       110|
     ..|       .....|
1640|     1525|

I'm using Qgis 2.16.0-Nødebo rev  2f9ed29 GDAl 1.10 on Debian 8
Is it normal or is a issue? Anybody can confirm?



More information about the Qgis-user mailing list