SERVER-10026 sort with improved sort analysis