Bug 606848

Summary: Organize Usings does not order System before other elements
Product: [Mono] MonoDevelop Reporter: Chris Hamons <chris.hamons>
Component: texteditorAssignee: Mike Krueger <mkrueger>
Status: RESOLVED FIXED QA Contact: MD Bugs <monodevelop-bugs>
Severity: Normal    
Priority: P5 - None    
Version: 2.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Chris Hamons 2010-05-18 17:10:59 UTC
Description of Problem:
In the text editor, you can select a set of using's and sort them. In visual studio, this sticks the System usings first. In monodevelop, it is strictly alphabetical. This violates a few stylecop rules, as they want System first.


Steps to reproduce the problem:
1. Open a file with some using Systems and other using.
2. Select all usings
3. Right click, orgainize usings -> Sort


Actual Results:
Sorted alphabetical, with System near the end

Expected Results:
Sorted alphabetical, with Systems sorted alphabetical first, then everything else sorted alphabetical.


How often does this happen? 


Additional Information:
Comment 1 Lluis Sanchez 2010-05-18 17:29:20 UTC
Already fixed in MD 2.4 beta 1.
Comment 2 Michael Hutchinson 2010-05-18 17:41:53 UTC
I still get a strict alphabetical sort in trunk.
Comment 3 Michael Hutchinson 2010-05-18 17:44:03 UTC
I already filed an enhancement for this.

*** This bug has been marked as a duplicate of bug 606120 ***
Comment 4 Lluis Sanchez 2010-05-18 18:46:28 UTC
Sorry, I closed the wrong bug.
Comment 5 Mike Krueger 2010-05-19 07:21:25 UTC
This is different than 606120.
Comment 6 Mike Krueger 2010-05-19 07:52:00 UTC
Implemented.

The difference of this report is that the systems ordering can be hard-wired. We don't need a style setting for this and the using sorting is specified by st.

The enhancement michael requested would require a style setting with custom sorting rules. Eclipse has something like that - and it's nice to have. I would like to have a eclipse like sort ordering style panels in future MD versions.

But for now the hard wired system before other usings rule is enough & simple to implement in our current order usings feature.