Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Template View UI not sorting correctly
Last Post 06/09/2010 9:53 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jason Scott
New Member
New Member
Posts:46


--
06/07/2010 9:51 PM

I believe I've uncovered a bug in the way the TemplateView UI sorts custom attributes.  We have a custom attribute of the "Integer" type, and when I click on the column to sort (either ascending or descending), it seems to look at the first digit only.  That is, it would come up with a sort order as shown below:

9

80

50132

200

1

As you can see, it's seeing the number "9" as being larger than "80", since the first digit is larger.  It's almost as if it's being treated as a string and not an Integer.  To be fair, this attribute type USED to be "string".  I only changed it to "Integer" after I found this behavior in the UI.  Could you shed some light on how I could fix this?  Thanks!

 

Jason 

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/09/2010 9:53 AM
Hi Jason,

Interesting. To be honest this is surfacing only now. But it's completely logical as all attribute values are stored as strings internally. So it would require quite some redesign to solve that.

Peter
You are not authorized to post a reply.