Book a Demo

Author Topic: Can SQL be used to find the custom sort order of elements inside a package?  (Read 2745 times)

Colin Coates

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Sparx EA usually sorts the elements inside a package alphabetically when displayed in the browser. However, this can be overridden by manually setting a sort order. Can SQL be used to find the custom sort order of elements inside a package in the browser?

Not sure which tables in the repository (if any) might hold this information... I have been looking at t_object, t_xref and others but no luck so far...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13495
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can SQL be used to find the custom sort order of elements inside a package?
« Reply #1 on: September 07, 2022, 12:07:45 am »
t_object.Tpos for objects, and t_package.Tpos for packages.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Can SQL be used to find the custom sort order of elements inside a package?
« Reply #2 on: September 07, 2022, 07:15:19 am »
The number in these columns can be strange depending on whether you used a manual sorting or not (and depending on the alphabtical sort oprtion). To me it's more like black magic.

q.

Colin Coates

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Can SQL be used to find the custom sort order of elements inside a package?
« Reply #3 on: September 07, 2022, 08:04:31 pm »
Excellent! Thank you very much for your assistance gentlemen!