What does happen with your call? I’m guessing you get all 100 resources sorted by distance?
Some ideas – hopefully I won’t cause more harm than good:
I have never done this, but possibly changing the syntax to what is used by the filterby property might work:
If that doesn’t work:
should sort everything into groups by district first and then sort by distance within each district. You would only end up with the center district as the first grouping if it happens to be alphabetically first.
What kind of TV is district? Select list? Possibly you could assign a numerical value and sort on that rather than the spelling, and that way you could assign 1 to the center district.
If I were doing this with pdoresources I might just use 2 separate calls with filters. So the first call filters by equal to center, and the second call filters by NOT equal to center… But not sure how to wrap 2 pdoresources calls in one pdopage call. I bet it can be done though…
For what it’s worth, if each district is a separate checkbox TV, each with only a single checkbox, then you can just include that TV in the sortby (in this example “center” is a checkbox TV) :
All resources with the “center” checkbox checked will display first. Probably not an efficient way to build the district TVs though.