ricardo,
in situation where you see higher priority valued gateway group selected first, do you know if the lower priority valued group would be used if none of the gateways in the higher priority valued gateway group can serve the request? if it is used, then both exist in the hash table. the list in the hash table is sorted by prefix length and priority.
-- juha