Home > WebEOC > Admin Guide > HTML Conventions > Sort Eocrepeatallrecords and Relatedlists

Sort Eocrepeatallrecords and Relatedlists

Table of contents
No headers

By default, the <sort> attribute in WebEOC treats the board's data as a string. This can cause any sorting by datetime fields to be non-chronological in both ascending and descending orders. Thus, to force the <sort> attribute to treat datetime fields as actual datetime fields and not just strings, use the following code:

<eocrepeatallrecords sort="cast(date_time_field as datetime) asc">
<relatedlist sort="cast(date_time_field as datetime) asc"> 
Last modified



This page has no classifications.