I have been tasked with re-ordering all the items displayed on a website with the newest products(highest number code) first. Currently they are listed in entry order. The codes will start with a single or a double letter and then be following by a numerical value (ie 001-1200)
This is the current base page with the code to display the range and category, I believe the website/code is about 15 years old......
Thanks in advance
<div id="content">
<cfinclude template="../core_includes/top_menu.cfm">
<div id="template_box2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<cfinclude template="../core_includes/left_menu.cfm">
</td>
<td valign="top">
<div id="template_right">
<div id="template_right_topbar"></div>
<div id="template_right_content" <cfif products.recordcount eq 0>style="height:480px;"</cfif> <cfif products.recordcount lte 24>style="height:480px;"</cfif>>
<div style="padding-bottom:10px;">
<span class="template_header1"><cfoutput>#range.range_name#</cfoutput></span>
</div>
<div style="padding-bottom:12px;">
<span class="template_header5"><cfoutput>#category.category_name#</cfoutput></span>
</div>
<div <cfif products.recordcount eq 0>style="padding-top:14px;"</cfif>>
<cfif products.recordcount gt 0>
<cfoutput query="products">
<a href="index.cfm?content=product&range_id=#range.range_id#&category_id=#category.category_id#&product_id=#products.product_id#" target="_self" alt="#products.code#"><img src="#products.image_1_thumb#" width="88" height="88" border="0" alt="#products.code#" title="#products.code#" style="margin-right:4px;margin-bottom:3px;border: 2px solid ##484848;"></a>
</cfoutput>
<cfelse>
<span class="template_header2">There are currently no products in this category. Please <a href="mailto:*.*">email us</a> for more information.</span>
</cfif>
</div>
</div>
<div id="template_right_bottombar"></div>
</div>
</td>
</tr>
</table>
</div>
<cfinclude template="../core_includes/footer.cfm">
</div>