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 }}