Proper weight/priority sorting of SRV records in RFC3263 resolver

For case when multiple SRV records with same priority exist selection
among them should honor weight (not jsut sort by weight, but select
records randomly according to given weight).