Refactor to use Vim's sort()

Performance is the same as with an external binary.  Reimplemented the
g:JavaImpSortJavaFirst setting.  More changes forthcoming.