Jump to content
We've recently updated our Privacy Statement, available here ×

Grouping on integer


mviljoen123

Recommended Posts

Hi All

 

Hope someone can help.

I'm trying to group on an Integer value, but the sort order is incorrect. It seems that 11 is seen as smaller than 4, so I'm guessing it's sorting on the string value. How can I make sure the groups I use have the default ascending sort order.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi!

I'd suspect the SQL query does not sort cleanly ... usually, grouping just steps through the sql resultset until a different value is found ... if there is not "order by int-field" in the SQL-query, the results are unexpected - wrong order, groups appearing more than once.

 

Hope this helps,

Sebastian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...