| **Navigation:**  [[clarion 7 faqs.htm|How To's and Troubleshooting]] > How to... >====== How to add a reverse sort order to a browse ====== | [[adding control templates.htm|{{btn_prev_n.gif|Previous page}}]][[clarion 7 faqs.htm|{{btn_home_n.gif|Return to chapter overview}}]][[how to add a toolbar.htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} To implement a reverse sort order to a template-generated listbox is a simple process of populating a tab, and setting the conditional behavior using the Additional Sort order option. __**Set up a new tab from the Window Designer**____:__ 1.Click on (select)the SHEET control. 2.From the Properties Pad, add a new Tab Control. 3.Change the text property of the TAB to "Reverse Order" or the text you want to display on the tab. __**Set up the list box to work with the new tab:**__ 1.RIGHT CLICK on the list control and choose Actions from the popup menu. 2.Select the **Conditional Behavior** tab. 3.Press the **Insert** button. 4.Type CHOICE(?CurrentTab) = n (where n = the number of the Reverse Order tab) in the condition entry field. 5.TYPE -FIL:FieldName (where FIL:FieldName is the label of the reverse sorted field) in the additional sort field entry field. (Notice the minus (-) sign before the field name) Note: For a case insensitive sort, use -UPPER(FIL:Fieldname) 6.Press the **OK** button to close the list box Actions, and **Save and Close** to exit the Window Designer. This sets the new tab to sort the list in the reverse order of the field specified.