stevebuik / Graphvizforce-Lightning

Automatic Entity-Relationship diagrams and SOQL queries for Salesforce
The Unlicense
31 stars 3 forks source link

sort available Object list to show related entities first #28

Open stevebuik opened 6 years ago

stevebuik commented 6 years ago

When adding Objects, it's natural to want to add those that are related to the one you just added. Currently the list of all objects is alphabetic.

If the most recently added entity (from Apex) is stored in an attribute, then the sorted list of Objects can be split into two sets of sorted entities. The top one shows all entities related to the most recently added. The lower section shows all other entities not related.

For extra bonus points, the transitively related entities can also be included in the top section but they are sorted lower in the list.

This would drastically improve the manual creation of diagrams