UML field and method sorting issue

Answered

Hello!

I want to create an UML diagram of my application. However whenever I generate this diagram my methods and fields are all not sorted properly. I am already using "Sort by declaration order" but it does not work. How can I sort all fields and methods the way I declared them in my code?

 

(Here are the first few fields. This goes on through the entire class. The same behavior can be found in the other classes)

0
6 comments

It should work since 2022.1 release according to https://youtrack.jetbrains.com/issue/IDEA-170065/Allow-to-sort-field-and-methods-on-diagram-alphabetically-or-by-visibility.

If it doesn't work, please file a new bug at https://youtrack.jetbrains.com/newIssue?project=IDEA and attach a small sample project to preproduce it.

0

still error in 2024.3

0
Could you please elaborate on your specific issue with more details like screenshots?
0

this is my class

here is the diagrams,it's not sort by declaration order

0

Please sign in to leave a comment.