Author Topic: Display order for classes in class diagram  (Read 1930 times)

eahlers

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Display order for classes in class diagram
« 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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Display order for classes in class diagram
« Reply #1 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.

eahlers

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Display order for classes in class diagram
« Reply #2 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?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Display order for classes in class diagram
« Reply #3 on: July 07, 2023, 03:57:43 pm »
Ctrl+Arrow(up or down) in the Features window.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Display order for classes in class diagram
« Reply #4 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Display order for classes in class diagram
« Reply #5 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