add ordering for symbols. close #2939
Merge branch 'master' of github.com:JuliaLang/julia