Added Sort::hasAttribute().