Update NET.R

now sorts variable names before checking whether the same variables are used in two models