public function unique(array $array)
    {
        $sorter = (new SortTool)->setComparator($this->getComparator());
        $sorter->sortAssociative($array);
        foreach ($array as $key => $value) {
            if (isset($_last) && ($this->getComparator()->compare($_last, $value) == 0)) {
                unset($array[$key]);
            }
            $_last = $value;
        }
        return $array;
    }