protected function sortFilters()
    {
        usort($this->filters, function (FilterInterface $a, FilterInterface $b) {
            $a = $a->getPriority();
            $b = $b->getPriority();

            if ($a == $b) {
                return 0;
            }

            return $a < $b ? -1 : 1;
        });

        $this->sorted = true;
    }