protected function renderSortLinks()
    {
        $attributes = empty($this->attributes) ? array_keys($this->sort->attributes) : $this->attributes;
        $links      = [];
        foreach ($attributes as $name) {
            $links[] = $this->sort->link($name);
        }

        return $this->render('LinkSorterView', [
            'id'             => $this->id,
            'links'          => $links,
            'attributes'     => $this->sort->attributes,
            'options'        => array_merge($this->options, ['encode' => false]),
            'containerClass' => $this->containerClass,
            'buttonClass'    => $this->buttonClass,
            'uiModel'        => $this->uiModel,
        ]);
    }