public static function sortByProviders(array $values)
    {
        $sorted = [];

        foreach ($values as $value) {
            foreach ($value['providers'] as $provider) {
                if (!isset($sorted[$provider])) {
                    $sorted[$provider] = [$value];
                } else {
                    $sorted[$provider][] = $value;
                }
            }
        }

        return $sorted;
    }