Bolt\Storage\Query\SearchQueryResultset::sortSingle PHP Method

sortSingle() public method

public sortSingle ( string $label )
$label string
    public function sortSingle($label)
    {
        $results = $this->get($label);
        $scores = $this->scores[$label];
        arsort($scores);
        $sorted = [];
        foreach ($scores as $k => $v) {
            $sorted[] = $results[$k];
        }
        $this->results[$label] = $sorted;
    }
SearchQueryResultset