Declaration of the editable region: integer filter works fine.
However when I output this code:
I get the result: 10,12,20,8,
I guess this is because the sorting happens on the first character and then on the second rather than sorting as an integer? How can this be fixed?
- Code: Select all
<cms:editable name='place_number' type='text' validator='integer' />
However when I output this code:
- Code: Select all
<cms:reverse_related_pages masterpage='subscriptions.php' orderby='place_number' order='asc'>
<cms:show place_number />,
</cms:reverse_related_pages>
I get the result: 10,12,20,8,
I guess this is because the sorting happens on the first character and then on the second rather than sorting as an integer? How can this be fixed?