That's a wiring problem, not a programming problem.
Just change the order of the wiring to match what you want. It should match the order of the ring group the Telco has given you so that incoming calls come in starting with the lowest numbered lines and outbound calls start with the highest.
But really what is the point? Usually one line is as good as another, there shouldn't be any difference.