An open source tool for arranging .NET source code

Forums > Feature Discussion > Increased Sorting Options


11/11/2009 10:45:17 AM
Gravatar
Total Posts 1

Increased Sorting Options

Right now it appears that NArrange always does an ordinal sort.  This doesn't always have the desired result for us. 

Also for usings, the namespace should be split on "." before sorting. It causes it not to match StyleCop sort rules. 

ex.  "using TRS.Utilities" gets sorted before "using Telerik.Web.UI".

I would like to be able to specify a different sort type in the options.  All of the StringComparer types should be available in the config.  And then make that choice mutually exclusive for usings, methods, properties, etc.  I have made the change myself to the source to get the sorting behavior we want, but I don't have any configuration capability for it.

Thanks,

Stoney




12/5/2009 4:33:45 PM
Gravatar
Total Posts 30
James Nies
- NArrange Developer
Astral Softworks

Re: Increased Sorting Options

Stoney,

Thanks for bringing the ordinal sort behavior to my attention.  The desired sort to conform to StyleCop rules seems to be case-insensitive.  Thus, the default sort behavior of NArrange has been changed to ordinal, case-insensitive, which should match the behavior you're expecting.  This change has been included in NArrange v. 0.2.9.

I haven't yet had a chance to look into controlling the sort type through the configuration, but I agree that this could be a useful feature.

Thanks again,

James Nies
NArrange Developer 





Site Map | Printable View | © 2008 - 2010 NArrange | Powered by mojoPortal | XHTML 1.0 | CSS | Site provided by Astral Softworks, LLC