[CDF-25064] 🦗 Fix location filter deploy order (#1731)

# Description

Adds topological sort of location filters before creations to ensure
that parents are created before children.

## Changelog

- [x] Patch
- [ ] Minor
- [ ] Skip

## cdf

### Fixed

- When running `cdf deploy`, Toolkit now accounts for the dependencies
between location filters in different modules.

## templates

No changes.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
