Book a Demo

Author Topic: Change sort order in project browser?  (Read 3872 times)

game

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Change sort order in project browser?
« on: July 04, 2019, 06:04:41 pm »
Hello,

we create some elements via the API. They always have the same name and an additional number, which also has the background that they are sorted correctly.
Now the problem is that these elements are sorted automatically by the EA. However, the program sorts the numbers as follows:

1
10
11
2
20
21
3
...

Is there a possibility that the sorting is done in ascending order?

Example:
1
2
3
4
...
10
11
12
...
20
21
...

The problem is also there if I copy a package and insert it at another place, then the entries are also displayed alphabetically sorted there.

Many greetings

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Change sort order in project browser?
« Reply #1 on: July 04, 2019, 06:22:02 pm »
Names are alphabetical, and thus the sorting is alphabetical as well.

Classic solution to a problem like this is to add leading zeroes

001
002
010
057
112

Will sort correctly

Geert

game

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Change sort order in project browser?
« Reply #2 on: July 04, 2019, 07:00:23 pm »
Thank you!

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Change sort order in project browser?
« Reply #3 on: July 10, 2019, 07:01:07 pm »
Hi,
Alternatively, you can try eaUtils free addin as it provides enhanced sorting features on the elements name, alias, stereotype, or tagged values.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com