"_rowNum" orders by string but not "integer"

classic Classic list List threaded Threaded
1 message Options
luy
Reply | Threaded
Open this post in threaded view
|

"_rowNum" orders by string but not "integer"

luy
Good morning,

A question about "_rowNum". It orders by string but not integer!

For example, it returns:

1
10
11
12
...
2
3
4
5
6
7
8
9

But I really want is:
1
2
3
4
5
6
7
...
10
11
12 ...

<display:table id="row_rec"
                name="alist_paging_bean"
                export="true"
                class="simple"
                cellspacing="0"
                cellpadding="5"
                requestURI="ProcessReport"
                keepStatus="true"
                pagesize="<%=bean_display.getPageSize() %>"
                partialList="true"
                size="<%=bean_display.getTotalRecNum() %>"
                defaultorder="ascending"
                defaultsort="1"
 >
    <display:column title="Row">
       <c:out value="${row_rec_rowNum}" />
    </display:column>

Could someone help?

Thanks a lot!

--
Lu Ying

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user