Skip to content

Instantly share code, notes, and snippets.

View cjonstrup's full-sized avatar
💭
I may be slow to respond.

Carsten Jonstrup cjonstrup

💭
I may be slow to respond.
View GitHub Profile
@cjonstrup
cjonstrup / NaturalSort.cs
Created October 23, 2015 14:51 — forked from KennyEliasson/NaturalSort.cs
Natural Sort c#
public class NaturalSortComparer : IComparer<string>, IDisposable
{
private bool isAscending;
public NaturalSortComparer(bool inAscendingOrder = true)
{
this.isAscending = inAscendingOrder;
}
public int Compare(string x, string y)