[Bug?]: When exporting to HMTL Docs, models ordering is different than StarUMLs

29 views
Skip to first unread message

Vasileios Pothos

unread,
Jul 22, 2024, 3:54:24 AMJul 22
to StarUML
Hi,
I noticed that when I am exporting to HTMLDocs the order of time items in the HTML explorer are different from what I want them. I am not sure how they are ordered, I feel it has to do with the generation order or something like that, but not sorted alphanumerically. Also it seems I have no control on them, to sort them as I want.

To this end, I want to export to HTMLDocs something like this (see attached MDJ example)
and I get as a result this:
HTMLDocs-order.jpg

Can this be fixed?
Or at least to export everything based on sorted alphanumericals, thus we to have some control over it (using i.e. numbers like I do to keep the order we want in StarUML).

Thanks
OrderHTML.mdj

Vasileios Pothos

unread,
Jul 22, 2024, 3:56:23 AMJul 22
to StarUML
In my previous response I see the image I had add is not visible.
Thus, to avoid any confusion to readers, from here:
StarUML-order.jpg
I get this, which has different order (and doesn't actually makes any sense):
HTMLDocs-order.jpg

StarUML

unread,
Jul 22, 2024, 9:30:21 PMJul 22
to StarUML
Hi,

HTML Docs are generated in “Sort by Added” order.

You can see the same order by selecting “Sort By Added” from the top right option in the Model Explorer in StarUML.

Thanks,

2024년 7월 22일 월요일 오후 4시 56분 23초 UTC+9에 vasileio...@gmail.com님이 작성:

Vasileios Pothos

unread,
Jul 23, 2024, 1:59:10 AMJul 23
to StarUML
Thanks for the info.

By experimenting a bit, the "Sort By Added" is the order which the elements are presented inside the .mdj file (which is fortunately JSON format).
So at least I can reorder them by manually modifying the .mdj's file corresponding blocks and it does works when exporting back to HTMLDocs!

[Feature proposal based on the above observation]: I think still it would be ideal to have a "Sort By User" where the user can short all the elements as he wants in the explorer, and when saving the .mdj file to write it down according to User's order and not the added order. And as such the "Added order" would become same as "User's order".
Thus it could pass the User Order also to HTMLDocs without any further modifications.

Thanks!

StarUML

unread,
Jul 23, 2024, 2:37:08 AMJul 23
to StarUML
You can reorder by "Move Up" and "Move Down" in Edit menu. Did you mean this feature?

Thanks,

2024년 7월 23일 화요일 오후 2시 59분 10초 UTC+9에 vasileio...@gmail.com님이 작성:

Vasileios Pothos

unread,
Jul 23, 2024, 3:29:56 AMJul 23
to StarUML
!!! Yes!
This works! So using "Sort By Added" and then selecting models and using "Move Up" and "Move Down" to order them in custom order, and save, it seems it replaces the "Sort By Added" order in the "mdj" file with the custom sorting!!! And this "User Order" seems to also pass in HTMLDocs, solving my initial issue!!!!
That's Great!!!

[Bug]: By accident I noticed that when I have a flow chart and models, then the "Move Up"/"Move Down" for the FlowChart is fails!
See the attached "OrderHTML.mdj" file. Models 01..., 02... and 03... can change order - and this to be reflected in HTMLDocs - but if you try to change order to the "Flowchart1" regarding the other models (01..., 02..., 03...) it fails to move it! This seems more like a bug, and may also affect other kinds of elements too, so, if you want have a look at it.

Thanks!!!
OrderHTML.mdj

StarUML

unread,
Jul 23, 2024, 7:51:29 AMJul 23
to StarUML
Ordering can only be done on elements of the same type.  Element types are sorted according to the rules we've established. Diagrams come first, followed by models and packages, then classes, and so on.

We find this more convenient than reordering everything, and it's by design, so it's not a bug.

Thanks,
2024년 7월 23일 화요일 오후 4시 29분 56초 UTC+9에 vasileio...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages