Sort data for params

Hello. I have the code

{{ range first 200 ((where .Site.Params.cdn_location_ru ".location" "=" "me") sort .Site.Params.cdn_location_ru ".country" "asc") }}
			{{ if eq .aviable 0 }}
											<li class="soon"><span class="color_list_loc">{{ .country }}</span></li>
			{{ end }}
{{ end }}

But the result doesn’t sort. Where is a mistake?

I’m not sure of what the code should do when it works properly. But should the alphabetical sorting not happen on the list that gets filtered by where?

I mean something like this:

{{ $filtered := where .Site.Params.cdn_location_ru ".location" "=" "me" }}
{{ $sorted := sort $filtered ".country" "asc" }}

{{ range first 200 $sorted }}
    {{ if eq .aviable 0 }}
        <li class="soon"><span class="color_list_loc">{{ .country }}</span></li>
    {{ end }}
{{ end }}