better sorting in dns builds