Hi Michael,
You can select that option from the Order By: drop-down menu in the members directory, but in your custom directory template that selection is missing.
You can try restoring that selection in your custom template, possibly by copying the code from the original members directory template.