jkrause Posted January 5, 2010 Share Posted January 5, 2010 Is there a way to sort an XML datasource of a number field instead of string? Right now it seems to sort a field of numbers in a set of nodes alphabetically; so 10, 11, etc come before 2, 3, 4 in ascending order. Do I have to sort the xml datasource outside of JasperReports in order to get a proper number sort? Is this a feature request? Link to comment Share on other sites More sharing options...
lucianc Posted January 6, 2010 Share Posted January 6, 2010 Are you using a sort field for this? If so, is the report field declared as java.lang.Integer (or other numerical type)?Regards,Lucian Link to comment Share on other sites More sharing options...
jkrause Posted January 6, 2010 Author Share Posted January 6, 2010 Ah, that seems to be it. I had defined it as Integer, but it got changed to String somewhere in the process of debugging. Thank you so much. Link to comment Share on other sites More sharing options...
Recommended Posts
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