@manhng

Welcome to my blog!

Sort

June 18, 2020 11:24

Sort (edit)

  • System.Collections.Generic
  • System.Collections.IComparer Interface
  • Comparison<T> Delegate

.NET Framework

  • Array.Sort
  • List<T>.Sort
  • Enumerable.OrderBy
  • ParallelEnumerable.OrderBy
  • SortedSet<T>
  • SortedList<TKey, TValue>
  • SortedDictionary<TKey, TValue>

LINQ

IComparable<T>

IComparer<T>

KeyComparer<TSource, TKey>

Comparer<T>

Comparison<T>

https://dogmamix.com/cms/blog/KeyComparer

https://www.geeksforgeeks.org/how-to-sort-list-in-c-sharp-set-1/

https://www.geeksforgeeks.org/linq-sorting-operator-orderby/

https://dzone.com/articles/real-world-refactoring-sort-vs-orderby

https://visualstudiomagazine.com/articles/2015/04/01/automatic-sorting.aspx

https://entityframework.net/knowledge-base/43484464/dynamic-linq-orderby-date-only-on-datetime-object-entity-framework

https://codereview.stackexchange.com/questions/112142/sorting-a-list-based-on-date-and-time

CSharp

https://csharp.net-tutorials.com/linq/sorting-data-the-orderby-thenby-methods/

https://www.tutorialsteacher.com/linq/linq-sorting-operators-orderby-orderbydescending

http://csharp.academy/custom-method-of-sorting-strings/

https://www.dotnetperls.com/sort-list

Sort DateTime

http://procbits.com/2010/09/09/three-ways-to-sort-a-list-of-objects-with-datetime-in-c

https://codereview.stackexchange.com/questions/112142/sorting-a-list-based-on-date-and-time

SortExtensions

https://www.velir.com/blog/2011/02/17/ilist-sorting-better-way

LINQ

Install-package System.Linq.Dynamic

Dynamic LINQ - Using strings to sort by properties and child object properties

https://jasonwatmore.com/post/2014/07/16/dynamic-linq-using-strings-to-sort-by-properties-and-child-object-properties

Sort in ASP.NET Core Web API

https://code-maze.com/sorting-aspnet-core-webapi/

Categories

Recent posts