Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: eahlers on July 06, 2023, 06:57:10 pm

Title: Display order for classes in class diagram
Post by: eahlers on July 06, 2023, 06:57:10 pm
Not sure if this was asked already before, but I couldn't find something in the forum.

In a class diagram methods and attributes are sorted alphabetically. The visibility (public, protected, private) is shown also. So all good. But the question came whether it's possible to sort then first agains visibility and then alphabetically. In that case I have all public or private items directly underneath each other.

I guess this is not possible. Or does someone know how to do it? Defining special stereotypes according visibility, which would group the items, should work but is not so nice.
Title: Re: Display order for classes in class diagram
Post by: qwerty on July 06, 2023, 09:47:51 pm
I would guess you need to sort it manually or by using a script. The option you want is not present.

q.
Title: Re: Display order for classes in class diagram
Post by: eahlers on July 07, 2023, 03:31:52 pm
I'm not aware that there is a possibility to sort it at all. Do you know a way how to do it manually?
Title: Re: Display order for classes in class diagram
Post by: Geert Bellekens on July 07, 2023, 03:57:43 pm
Ctrl+Arrow(up or down) in the Features window.

Geert
Title: Re: Display order for classes in class diagram
Post by: qwerty on July 07, 2023, 05:00:41 pm
And (well, it's early in the morning now) there's that Sort Features Alphabetically somewhere in the option jungle. Needs to be off...

q.
Title: Re: Display order for classes in class diagram
Post by: Geert Bellekens on July 07, 2023, 05:07:18 pm
And (well, it's early in the morning now) there's that Sort Features Alphabetically somewhere in the option jungle. Needs to be off...

q.
Yes, but EA will helpfully propose to turn it off for you when you try to sort attributes manually using Ctrl-Arrow

Geert