public function sortedXPath($xpath)
    {
        $nodes = $this->xpath($xpath);
        $args = func_get_args();
        $args[0] =& $nodes;

        call_user_func_array(array(get_class($this), 'sort'), $args);

        return $nodes;
    }