Set paramater order on sort-related routines so that the vector being
sorted/searched/etc. is always first.
Fix order of nans2end.
Allow function arguments as first paramter of sort functions
Sort updates:

* Add sort versions which take Functions as first argument,
  for use with "sort(x) do a..." syntax
* Added (but commented out) select and selectby functions
  for same.
Minor updates.
Fix sort versions which take a function as the first parameter.
Actually make taking a function argument work...
Finish cleanup of allowing function arguments first.

* Added (but did not export) selectby, sortpermby
* select, selectby, and sortpermby can take function arguments first
* Added basic tests
Update the generalized SVD along the lines of the rest of the linear
algebra updates.
Add gsvd to the docs.
Introduce factorization objects for SVD - SVDDense.
svd, svdt, and svdvals are the same as before but internally use SVDDense.
The vecs argument (in svd, svdt, etc.) has been deprecated, since the same effect
can be achieved by calling svdvals.
Update documentation, tests, and exports for svd.
Better grouping of various svd functions.
`@deprecate`: allow deprecating an expression with another expression.
stats triage: move advanced stats functions out of base [closes #2200]
Close #2178
Implement SymTridiagonal(A::AbstractMatrix)
Fix eigvals for SymTridiagonal
Remove trideig (eig has the functionality)
Merge branch 'master' of github.com:JuliaLang/julia
Merge branch 'kmsquire-sort_param_order'

Conflicts:
	test/sorting.jl
some doc updates and un-export the removed trideig
close #2192
Merge branch 'master' of github.com:JuliaLang/julia
close #2133