One way to do this is with a delegate
List<cTag> week = new List<cTag>();
// add some stuff to the list
// now sort
week.Sort(delegate(cTag c1, cTag c2) { return c1.date.CompareTo(c2.date); });
More Related Contents:
- Merge two arrays and return sorted array in c# [closed]
- C# List sorting with multiple range
- Natural Sort Order in C#
- How to Sort a List by a property in the object
- Best way to randomize an array with .NET
- C# Sort and OrderBy comparison
- C# List Sort by x then y
- List OrderBy Alphabetical Order
- Sort ObservableCollection through C#
- How to sort a list of objects by a specific field in C#?
- How do I sort an observable collection?
- Getting Serial Port Information
- Using IComparer for sorting
- Parallel Sort Algorithm
- sort string-numbers [duplicate]
- How to sort depended objects by dependency
- Sorting a Dictionary in place with respect to keys
- How can I sort a List by multiple T.attributes?
- LINQ order by null column where order is ascending and nulls should be last
- DataGridView Using SortableBindingList
- List sort based on another list
- How would I sort a list of files by name to match how Windows Explorer displays them?
- C# list.Orderby descending
- List complex sorting
- Sort one list by another
- how to sort string as number in datagridview in winforms
- How to enable DataGridView sorting when user clicks on the column header?
- how to sort a collection by datetime in c#
- Sorting the result of Directory.GetFiles in C#
- Use LINQ to move item to top of list