Simon, What I did was put the defaultorder in my column tag and not in my table tag.
In my table the page loads with my displaytag table in an ascending order. What I did was change the display:column to a defaultorder="descending" and then it changed the order when I click the title after my initial load of the page. Hope that makes sense. Seems kind of backwards but David was correct in his explanation of the column not changing the order in the first click because of the default order being ascending by default. The page was not loading according to the to the column defined in my default setting but according to the page. Thanks and good luck. Thanks to David for his help. It is appreciated. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Rydberg Sent: Monday, February 18, 2008 8:44 AM To: 'displaytag-user@lists.sourceforge.net' Subject: Re: [displaytag-user][displaytag-OpenDiscussion]PleaseHELP-question on SORTING In the table... <display:table name="statistic" export="true" sort="list" pagesize="366" defaultorder="descending" id="highlightTableRow"> and it sorts ascending on the first click on the column header. The second click is descending... -----Ursprungligt meddelande----- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Savoy, Melinda Skickat: den 18 februari 2008 15:24 Till: displaytag-user@lists.sourceforge.net Ämne: Re: [displaytag-user] [displaytag-OpenDiscussion]PleaseHELP-question on SORTING Simon, Are you putting the defaultorder in your column or in your table? Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Rydberg Sent: Monday, February 18, 2008 8:22 AM To: 'displaytag-user@lists.sourceforge.net' Subject: Re: [displaytag-user][displaytag-OpenDiscussion]PleaseHELP-question on SORTING I have the same problem. The defaultorder="descending" property is not working... /Simon -----Ursprungligt meddelande----- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Savoy, Melinda Skickat: den 18 februari 2008 15:14 Till: displaytag-user@lists.sourceforge.net Ämne: Re: [displaytag-user] [displaytag-OpenDiscussion]PleaseHELP-question on SORTING David, Exactly, what I did do was add the "sortProperty" to my column and that fixed it. However, what I'm now seeing is that after my page loads initially, I click my REQNUM column title and the page just reloads with the ascending order but when I click it again then it sorts properly thereafter. Any suggestions on what may be causing that type of behavior? Thanks again!! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Pilato Sent: Monday, February 18, 2008 8:09 AM To: displaytag-user@lists.sourceforge.net Subject: Re: [displaytag-user] [displaytag-OpenDiscussion]PleaseHELP-question on SORTING Ok. So you found the issue. But you didn't use the defaultsort and defaultorder, did you? > <display:table sort="list" name="actionBean.results" > decorator="org.texashealth.scm.displaytag.decorator.SCMTableDecorator" > pagesize="50" requestURI="/reqs/Search.action" class="reqList"> To answer to previous question, yes you can sort other things than String. For example, I sort dates with displaytag even if dates are displayed like DD/MM/YYYY. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user