Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with sorting using display tag  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the userid to be sorted. So I wrote the code like this , but I defined my userid as string in my object.So it is sorting like string.
but want it to be sorted like number.How can I handle that . could any one please help me. Here is my code.

<s:set name="users" value="offices" scope="request"/>
<display:table name=" users " requestURI="" pagesize="${row}" sort="list" id="jobResults" class="candSearchResults" >
<display:column><s:checkbox name="checked"
fieldValue='%{ user. userId}'/></display:column>
<display:column property="user.userId" title="ID" sort="true"/>
<display:column property="user.userName" href="testing.action" paramId="userStatus" paramProperty="user.userId" title="Name" sort="true"/>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!