Add a second stage for the sorting.

This should stabilize the zone-files when one name has several ips or one ip has several names.
Merge branch 'add_reverse_zones'