What order does the VisualForce Repeater return information in?
I'm making a Visualforce email where the aim is to retrieve the most current record of information in a related object to the one which the email is related to, namely Account and the Contracts linked to account.
I only want it to send the most recent Contract record data as part of this email.
Something like the below is currently being used to do this, I just want to guarantee that it will always return what I want:
<table border="0" >
<col width="900"/>
<caption>Deal Overview</caption>
<tr>
<th>Contract Term (months)</th>
</tr>
<tr>
<apex:repeat var="ctrtx" value="{!relatedTo.Contracts}" rows="1">
<td>{!ctrtx.ContractTerm}</td>
</apex:repeat>
</tr>
</table>