We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Implement IComparable Interface to your model class
public class Product:IComparable<Product> { public string Id; public string Name; public float Cost; public float Price; public int CompareTo(Product other) { if (Cost > other.Cost) return 1; if (Cost < other.Cost) return -1; return 0; } }
Use it just like you would for Base Types
SortDotNet<Product>.Sort(UnsortedArray, SortType.Bubble, SortOrder.Decending);