Unity Sort A List

[Solved] Unity Sort A List | Haskell - Code Explorer | yomemimo.com
Question : unity3d sort list

Answered by : envious-earthworm-cfxdyz85y0hz

// listVariable = The list of objects/vars etc.
// 'delegate' command - aka callback
// a / b - the values to compare
// N.B. possible return values are 1, 0 and -1. The .compare method
// can be used on multiple var types to ease sorting, e.g. int, float, string.
listVariable.Sort(delegate(ObjectType a, ObjectType b) {	// E.g. return string.Compare(a.param, b.param);	});

Source : | Last Update : Sun, 21 Jun 20

Answers related to unity sort a list

Code Explorer Popular Question For Haskell