I am currently working on a movie listing website where all the movies are displayed in sequence based on their #TITLE#. The webpage is generated automatically by the software using a template file. Here is the section of code in the template file that showcases the movies:
<!-- Latest additions-->
#LATEST_ADDITIONS_START#
<div class="header">Movie Cover Listings</div>
#LATEST_ADDITIONS_TEMPLATE_START#
<li>
<a href="movies/#INDEX#.htm">
<table style="display: inline; border: 0; cellspacing: 1;">
<tr align="center">
<td align="center"><img border="0" src="covers/#COVER#.jpg" width="#WIDTH#" height="#HEIGHT#"></td>
</tr>
<tr align="center">
<td width="80" height="100" align="center" valign="top">#TITLE#</td>
</tr>
</table>
</a>
</li>
#LATEST_ADDITIONS_TEMPLATE_END#
<div class="link_latest"><tr>#LATEST_ADDITIONS#</tr></div>
#LATEST_ADDITIONS_END#
<!-- All movies -->
This is how the program outputs data from the database using the template file:
<!-- Latest additions-->
<div class="header">Movie Cover Listings</div>
<div class="link_latest"><tr>
<li>
<a href="movies/2.htm">
<table style="display: inline; border: 0; cellspacing: 1;">
<tr align="center">
<td align="center"><img border="0" src="covers/000002.jpg" width="90" height="135"></td>
</tr>
<tr align="center">
<td width="80" height="100" align="center" valign="top">3 Days to Kill</td>
</tr>
</table>
</a>
</li>
<li>
<a href="movies/1.htm">
<table style="display: inline; border: 0; cellspacing: 1;">
<tr align="center">
<td align="center"><img border="0" src="covers/000001.jpg" width="89" height="135"></td>
</tr>
<tr align="center">
<td width="80" height="100" align="center" valign="top">300: Rise of an Empire 3D</td>
</tr>
</table>
</a>
</li>
</tr></div>
<!-- All movies -->
The movies are currently listed in descending order by #INDEX# filename. I would like them to be sorted alphabetically by #TITLE# name instead.
If anyone has any tips on how to achieve this, I would greatly appreciate it.
Thank you for your assistance.