Author Topic: sort packages  (Read 5088 times)

ngong

  • EA User
  • **
  • Posts: 273
  • Karma: +1/-2
    • View Profile
sort packages
« on: March 19, 2021, 03:29:25 am »
Below a package I have about 30 child packages.
How to sort them by name in the Browser - other than manually?
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13233
  • Karma: +551/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: sort packages
« Reply #1 on: March 19, 2021, 03:54:40 am »
You can turn off free sorting, but that is for the whole model.

Alternative is to write a little script.

I think Guillaume's add-in also did something similar.

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: sort packages
« Reply #2 on: March 19, 2021, 07:44:01 am »
Select the parent package and right-click > Contents > Reset Sort Order
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: sort packages
« Reply #3 on: March 19, 2021, 07:49:52 am »
Select the parent package and right-click > Contents > Reset Sort Order
That did anything but sorting alphabetically (and the first time I notice that menu entry).

Or maybe it's just that strange element sorting which interferes?

q.

P.S. Oh yes, it was "Or". There were Actors, UCs, classes, objects and an enumeration. Each group (I did not test details) seem to be sorted individually.
« Last Edit: March 19, 2021, 07:53:40 am by qwerty »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: sort packages
« Reply #4 on: March 19, 2021, 08:03:55 am »
Select the parent package and right-click > Contents > Reset Sort Order
That did anything but sorting alphabetically (and the first time I notice that menu entry).

Or maybe it's just that strange element sorting which interferes?

q.

P.S. Oh yes, it was "Or". There were Actors, UCs, classes, objects and an enumeration. Each group (I did not test details) seem to be sorted individually.

You can stop the Browser from grouping elements by type: ribbon > Start > Preferences > General > Project Browser > Free Sorting
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: sort packages
« Reply #5 on: March 19, 2021, 08:31:38 am »
Oh yes. Of course except for the diagrams...  And it took me a while to find the preferences in 13.5 back again (Start/Workspace/Preferences). Hitting a moving target is tricky. Also, as Geert mentioned, that option is a global one.

I did reset the allowance and the sorting was kept. Until I did my first move of somerhing in the folder. Yeah, all a bit EAUI. You may claim "it's possible".

q.

ngong

  • EA User
  • **
  • Posts: 273
  • Karma: +1/-2
    • View Profile
Re: sort packages
« Reply #6 on: March 19, 2021, 08:22:53 pm »
thank you KP, it works.

as with qwerty: the first time I noticed this menu item.
Rolf