1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
This commit is contained in:
Tom Limoncelli
2023-01-28 11:09:38 -05:00
committed by GitHub
parent f9be836e31
commit 8249a4b95b
7 changed files with 15 additions and 16 deletions

View File

@ -105,6 +105,8 @@ func (z *ZoneGenData) Less(i, j int) bool {
return a.String() < b.String()
}
// LabelLess provides a "Less" function for two labels as needed for sorting. It
// sorts labels in prefix order, to make output pretty.
func LabelLess(a, b string) bool {
// Compare two zone labels for the purpose of sorting the RRs in a Zone.