Remove unused query-name sorting.

Thanks to @porterjamesj for the code-pruning, this is from his
pull request.