Newbie - Sort HTML View Script - Examples?
I am new to Zoho and have just started building an HTML view showing a table of wines listing by rating.
Can someone help me learn how to use script builder to sort the table by rating in descending order? I can't do this through the normal table view since I am going to use an HTML view to customize the table's appearance.
The code I'm using now (minus the css) is below. It's rendering the table just fine, but it's not sorting, obviously. I have no idea how to add instructions to sort this table and would appreciate very specific suggestions. I feel like it was a miracle I got this far, not being a programmer.
Thanks for any help.
htmlpage TestList3()
<%{%>
<table border="0" cellspacing="10" cellpadding="5" width="450">
<tbody>
<tr>
<td valign="top" width="87%">
<table class="zc-viewtable" border="0" cellspacing="0" cellpadding="3" width="450">
<tbody>
<tr class="zc-viewheader zc-viewheader-height">
<td width="75%">Wine</td>
<td>Cost</td>
<td>Rating</td>
</tr>
<%for each r in Reviews_Wines
{%>
<tr class="zc-viewrow zc-row-1">
<td><%=r.BlogLink%> </td>
<td><%=r.Cost%> </td>
<td><%=r.Rating%> </td>
</tr>
<%}%>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<style type="text/css">