I want to sort a view directly using its parameters.
Explanations:
The page displays posts by location, based on a radius set in the view filter.
The problem is that the posts are not sorted by distance from the mapcenter.
I need the view to be sorted by the same value as mapcenter (which is used to define the posts to display)
Sorting works fine when I choose a location manually (fixed). I would like this location to be the same as the one defined in the "mapcenter" filter. I tried to insert a shortcode but it didn't work.