Ben Ball Posted February 26, 2008 Posted February 26, 2008 How can I sort records in a portal so it recognises the number (as a whole number) inputted and not just the first number. i.e Sort order should be 6 8 20 100 [color:red]Not 100 6 8 20
LaRetta Posted February 26, 2008 Posted February 26, 2008 Well, I would have said that the numeric field is a text field except for the 20 at the end which blows the theory. Regardless, if the field being sorted is a true number field then it should sort as you wish. :wink2:
IdealData Posted February 26, 2008 Posted February 26, 2008 (edited) Have you actually set the portal to sort by the number field? You haven't said that you have done this yet. Edited February 26, 2008 by Guest
Ben Ball Posted February 26, 2008 Author Posted February 26, 2008 Umm, I guess that is my problem... I have a mixture of text and numbers.. for metric and imperial sizes like M5 and 1"... It really gets complicated with the inches... But I am only really concerned with the metric sizes... but unfortunately I have to keep it as a text field.. I should have added this detail in my first post...
Ben Ball Posted February 26, 2008 Author Posted February 26, 2008 In response to idealdata... Yes I have sorted by that field.. that was the first thing to check... but the detail above should clarify further.. The problem is established that its a text field.. so wont sort in numerical values.. due to the need for imperial differentiation...
comment Posted February 26, 2008 Posted February 26, 2008 You could add a calculation field (result is Number) = YourTextfield, and sort by it. Perhaps the formula could be a bit smarter, so that imperial sizes are normalized to some uniform base - and sorted correctly too. In general, it's best to keep separate fields for values and their units.
Ben Ball Posted February 26, 2008 Author Posted February 26, 2008 Thanks for the advice... Yes I can see that its definetely better to keep the units seperate... I mean metric is very easy to remedy...Its just standard spec to list a bolt or hole size as M5 or M10 but the imperial sizes are listed as fractions which cause even further problems... if I put 1 1/8" in a number field it can take it as being a calc field... a bit of a nightmare..
Recommended Posts
This topic is 6115 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now