Bug Tracking System
Mantis Bug Tracker

View Issue Details Jump to Notes ] << ] >> ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001040Sqlite DeveloperGUIpublic2010-05-29 02:002010-05-31 23:01
ReporterGillissie 
Assigned Tosharpplus 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001040: sorting numeric data as text
DescriptionThis seems to be a new bug because I don't think it always did this until recently. When viewing data in a table, clicking a column header will sort by that column. Sorting by a numeric column is treating the data like text for sorting purposes. This results in sorts like this:
0
1
10
11
2
3
....
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000270)
sharpplus (administrator)
2010-05-30 08:54

Dear Gillissie,

    Are you sure your field is mapped to a number data type? If your field is mapped to the default string data type, the sort result will like what you observed. I just create a table with a integer field and can not reproduce the problem.
    
     Would you please use options | General | Data type to map your field to integer or int64 and check again?

    
(0000271)
Gillissie (reporter)
2010-05-31 23:01

I am certain that it is an integer type. It happens on any integer type field, not just a certain one.

When I do that data type mapping from int to Integer, the sorting is correct. Why wouldn't it just recognize int as Integer automatically? It used to, I'm tell you.

- Issue History
Date Modified Username Field Change
2010-05-29 02:00 Gillissie New Issue
2010-05-30 08:54 sharpplus Note Added: 0000270
2010-05-30 08:54 sharpplus Assigned To => sharpplus
2010-05-30 08:54 sharpplus Status new => feedback
2010-05-31 23:01 Gillissie Note Added: 0000271
2010-05-31 23:01 Gillissie Status feedback => assigned


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker