ReverseZoneSorting
class ReverseZoneSorting (View source)
Class ReverseZoneSorting
Provides multiple sorting algorithms for reverse DNS zones:
- Natural sorting (default): Based on natural sorting of domain names
- Hierarchical sorting: Organizes zones by network hierarchy prioritizing by the base network first (10.in-addr.arpa, 172.in-addr.arpa, etc.) and then by the specific subnets within each network.
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.