Stephen Rufle wrote:
> 
> Is there a way to sort a list of GenericValue objects by number on a 
> column that is actually a string representation of a number?
> 

The first thing that occurred to me was using a view-entity with a field for
your sequence that is a complex alias.  Might have to hunt around, but there
may be a function you can apply to the string that will result in a numeric
or perhaps this comment from the dtd might shed some light ...

In every SELECT statement, the fields that are normally used are really
defined to be expressions.
This means for example that you can supply an expression like
(discountPercent * 100) in place of  just a field name.  The complex-alias
tag is the Ofbiz way to do this.
-- 
View this message in context: 
http://n4.nabble.com/Sorting-a-string-column-as-a-number-tp1754297p1755937.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to