TheAliceProject / alice3

The Alice 3 block-based IDE desktop application. Also contains a NetBeans plugin to extend development into java.
https://www.alice.org/
Other
155 stars 24 forks source link

Fix bug #756 and improve function sorting a bit #409

Closed dportnoy15 closed 3 months ago

dportnoy15 commented 3 months ago

Avoid hiding property accessors under some groupings, sort functions by their display name instead of their Java name, and sort functions alphabetically under each return type

dportnoy15 commented 3 months ago

I also looked a lot into how sorting is done for each of the different groupings, and would like to discuss it to see whether any of it is worth changing

dabeshouse commented 3 months ago

I also looked a lot into how sorting is done for each of the different groupings, and would like to discuss it to see whether any of it is worth changing

Having arbitrary ordering within groups is a little unpleasant. They could be secondarily alpha ordered.

Joints ordered by hierarchy would be nice to have, but that may be too much of a pain.

dportnoy15 commented 3 months ago

Here's what I found about the sorting order for functions (specifically when selecting the Scene, i.e. "this"):

Sort Alphabetically:

Sort Ny Return Type:

Sort By Category:

THere's also probably parallel logic for sorting procedures, but I didn't look at that

dabeshouse commented 3 months ago

Thanks for the detailed descriptions.

I think aim for using display name alpha ordering within all groupings in both functions and procedures, and address the code review suggestions.

No need for other reorderings, either for pedagogical reasons, or what we might think is clarifying.