Added ordering to search paths closes #1979