Sort interfaces array

Sort the interfaces array so /etc/network/interface file will not change on every iteration.