This is a follow-up to this post.
I have a 4 tables.
- Table A is a list of documents
- Table B is these documents and which plots of land they're relevant to (a many:many relationship)
- Table C is a list of plots of land
- Table D is the actual shapes for the land. Some parcels have been merged (think Vermont, New Hampshire, and Maine are all one shape now.)
The code provided in that solution works great, but I was wondering if I could take it further.
Is it possible to sort the output by which parcels are present in each shape?
For example, if the Declaration of Independence is relevant to Maine and New Hampshire, but not Vermont, could I have the output be something like:
- Maine: Declaration of Independence | Maine Constitution |
- New Hampshire: Declaration of Independence |
- Vermont: No Documents
Thanks!