Ali Taher writes: > Everything works fine so far , yet I have a problem that last gateway comes > first, then gateways are ordered correctly. hard to say anything based on the information you gave. smaller tuple priority value means higher priority. -- juha