Jump to content

10 counting BEFORE number 2


phppup

Recommended Posts

I am getting the result I expected with ORDER BY/GROUP BY queries WITH a troubling EXCEPTION: the data is being IN ORDER from 0 thru 9, but 10 (which in this test sample is my LARGEST quantity) is being inserted between the ONE and 2 quantity. 

Not sure if this will occur with ALL teen values, as well as hundreds.

The column is a SMALLINT field (not sure if that makes a difference)>

Is there a solution for this situation?

Link to comment
https://forums.phpfreaks.com/topic/258944-10-counting-before-number-2/
Share on other sites

Are you sure it is a SMALLINT? That sounds like sorting of a character field that happens to contain "numbers"?

 

Are you doing any manipulations on the field in the query?

 

How about showing us the query? But first, check the column definition.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.