Bug 257148 - Allow sort members to not sort alphabetically
Summary: Allow sort members to not sort alphabetically
Status: RESOLVED DUPLICATE of bug 142899
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 18:53 EST by arie CLA
Modified: 2008-12-19 03:50 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arie CLA 2008-12-01 18:53:04 EST
Build ID: I20081030-1917

Steps To Reproduce:
My expectation that sort members would sort the members based on the definitions in Java/Appearance/Member sort order but instead it just sort the variables alphabetically (which is not desirable in my case but would be nice to have it as a separate option). 


More information:
I am not sure what triggers Java/Appearance/Member sort but exected it to be triggered by cleanup/save actions and to deal with code ordering cleanup (such as imports order) and not alphabetical sort order.
Comment 1 arie CLA 2008-12-01 18:58:29 EST
BTW, I created this one and https://bugs.eclipse.org/bugs/show_bug.cgi?id=257149 after creating
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256717 and being asked to split the Jira issues.
Also, this one clarify that the bug is not necessary related to the formatter (thought in my case I would
like to trigger them together via cleanup task or save actions).
Comment 2 Dani Megert CLA 2008-12-04 11:13:19 EST
Works for me using I200812021812 (both, clean up and save action). If you still see this using said build then please provide a step by step test case and reopen this bug.
Comment 3 arie CLA 2008-12-18 14:19:31 EST
I am using the latest 3.5M4 and still though it applies now the structure changes based on 
the settings defined in "Member sort order" it also sort alphabetically. For me it is undesirable
and there is no settings to enable or disable it. As it looks the "Member sort order" is about code
structuring based on java element type (inner class, member, statics, function,..) and also optionally
based on visibility but no where does it mention alphabetical order.
To reproduce it write two methods (bbb and aaa) and when apply cleanup or save action you should
see aaa being moved to be above bbb.
Comment 4 Dani Megert CLA 2008-12-19 03:50:54 EST
OK, so this has nothing to do with clean up or save actions - it's just how we currently do member sorting.

*** This bug has been marked as a duplicate of bug 142899 ***