LUCENE-5399: add missingFirst/last support when sorting by Type.STRING; speed up deep paging; fix solr's distributed group sort for certain field types

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1558887 13f79535-47bb-0310-9956-ffa450edef68