Bug report #1707

Sorting of a table column doesn't work correct for primary keys

Added by bjpfei - over 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:GRASS
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 #:11767

Description

1.) Load a db-layer with a integer primary key

2.) open the attribute table of the layer

3.) try to sort the primary key column

seems that qgis sorts the column like a string typed column

thx for checking this

Associated revisions

Revision e4cf9cf6
Added by Jürgen Fischer about 10 years ago

fix #1707

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision eead1f7d
Added by Jürgen Fischer about 10 years ago

fix #1707

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 43216f9b
Added by Jürgen Fischer about 10 years ago

fix #1707, take two

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 80a9cef4
Added by Jürgen Fischer about 10 years ago

fix #1707, take two

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer about 10 years ago

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

fixed in

#2 Updated by Giovanni Manghi about 10 years ago

  • Resolution deleted (fixed)
  • Status changed from Closed to Feedback

Sorry for reopening this one, but seems that the bug is still there in grass vector attribute tables. It sorts every numeric field like it was a string.

#3 Updated by Giovanni Manghi about 10 years ago

  • Status changed from Feedback to Open

#4 Updated by Jürgen Fischer about 10 years ago

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

fixed in 80a9cef4 (SVN r11443)

Also available in: Atom PDF