zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

Make the generate codes are sorted by alphabetic order #51

Closed zijianhuang closed 6 years ago

zijianhuang commented 6 years ago

This is to make the diff easier.

zijianhuang commented 6 years ago

As it turns out, basically sorted by namespace, class, field/property name and method,

However, because the algorithm is to walking through assemblies one by one, thus such sorting is only happening within an assembly.

Nevertheless, this is good enough for the primary purpose of such sorting: to minimize the difference shown in a diff editor when some minor changes happened in Web API, or the Web API developers move things around but the whole logic remain the same.