Fix NAPTR sorting by preference (reported by Juha Heinanen on dev)

cusax-fix
Ingo Bauersachs 14 years ago
parent deba0f1858
commit cfe23304ee

@ -720,7 +720,7 @@ public int compare(String array1[], String array2[])
// Second tries to define the priority with the NAPTR
// preference.
int preference
= Integer.parseInt(array1[4]) - Integer.parseInt(array2[4]);
= Integer.parseInt(array1[3]) - Integer.parseInt(array2[3]);
if(preference != 0)
{
return preference;

Loading…
Cancel
Save