Advanced Sorting

This long awaited feature is finally implemented in v0.7.

Now you can use multiple tags in the OrderBy statements, for example:

   1:  <PutMethods>
   2:      <OrderBy>
   3:          <Name />
   4:          <ParametersCount />
   5:      </OrderBy>
   6:  </PutMethods>

will place all methods, will order them by name and then will sub-order them by the number of parameters in the method.

Meaning that this piece of code:

   1:      interface IGateway
   2:      {
   3:          void Initialize(Configuration configuration);
   4:          void Finalize(string connectionString, string username, string password);
   5:          void Initialize(string connectionString, string username, string password);
   6:          void Finalize();
   7:          void Initialize();
   8:      }

will turn into:

   1:      interface IGateway
   2:      {
   3:   
   4:          #region Operations (5) 
   5:   
   6:          void Finalize();
   7:   
   8:          void Finalize(string connectionString, string username, string password);
   9:   
  10:          void Initialize();
  11:   
  12:          void Initialize(Configuration configuration);
  13:   
  14:          void Initialize(string connectionString, string username, string password);
  15:   
  16:          #endregion Operations 
  17:   
  18:      }

 

This entry was posted on Thursday, July 10th, 2008at 8:11 am and is filed under Public Beta, What's New, v0.7. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response or trackback from your own site.

 

One Response to “Advanced Sorting”

  1. […] example, I was implementing a new feature for Regionerate a couple of days ago in which I had to sort a list, split it into distinct values […]

    Posted by rauchy’s Blog - Desperately Trying to Decouple on July 10th, 2008 9:05 am

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>