Hi, I have the following code: <layout:collection name="studentEnquiries" id="enquiry" styleClass="tr1" styleClass2="tr2" sortAction="client"> <layout:collectionItem title="Id" property="id" href=" StudentEnquiryInitFilterForUpdate.do?operation=preUpdate&studentEnquiryId=${ enquiry.id <http://enquiry.id/>}" sortable="true"/> <layout:collectionItem title="First Name" property="firstName" sortable="true"/> <layout:collectionItem title="Last Name" property="lastName" sortable="true"/> <layout:collectionItem title="Mobile #" property="telNumber2"/> <layout:collectionItem title="Student Code" property="enrollment.studentCode" sortable="true"/> <layout:collectionItem title="Enrollment"> <c:choose> <c:when test="${enquiry.enrolled == false}"> <html:link href="StudentEnrollment.do?operation=preCreate&studentEnquiryId=${ enquiry.id <http://enquiry.id/>}">enroll</html:link> </c:when> <c:otherwise> <html:link href="StudentEnrollment.do?operation=view&studentEnquiryId=${ enquiry.id <http://enquiry.id/>}">View </html:link> / <html:link href="StudentEnrollment.do ?operation=preUpdate&studentEnquiryId=${ enquiry.id <http://enquiry.id/>}"> Update</html:link> </c:otherwise> </c:choose> </layout:collectionItem>
</layout:collection> When I code this way, I see "sort" icons in the header of the table that is generated. When I click on them, sorting happens but in a rather strange fashion. It happens on the right adjacent column and not on the same column. For example, when I click on Sort icon in Id column, the list is sorted on First Name. Similarly clicking on First Name sort icon sorts the list based on Last Name. Is this a bug? Or did I miss something in my code? Thanks in Advance. Regards, Raghu