ReverseZoneSorting
class ReverseZoneSorting implements ReverseZoneSorterInterface (View source)
Picks natural or hierarchical reverse zone sorting per the configured sort type, in SQL or in PHP.
Methods
string
getSortOrder(string $field, string $dbType, string $direction = 'ASC', string $sortType = 'natural')
Get the appropriate SQL sort order clause based on the configuration setting.
array
sortDomains(array $domains, string $sortType = 'natural')
Sort reverse zone domain names using the specified algorithm.
Details
string
getSortOrder(string $field, string $dbType, string $direction = 'ASC', string $sortType = 'natural')
Get the appropriate SQL sort order clause based on the configuration setting.
array
sortDomains(array $domains, string $sortType = 'natural')
Sort reverse zone domain names using the specified algorithm.