Method SortIfNecessary
SortIfNecessary()
Triggers sorting of the DataPoint<TDataType> list if the data is dirty.
Declaration
public void SortIfNecessary()
Remarks
Call this after a single or series of calls to SetDataPointNoSort(int, DataPoint<T>). This will trigger DataPoint sort and invoke the Changed callback. This method has two main use cases: to prevent frequent Changed callback calls within the same frame and to reduce multiple DataPoints list searches to a single sort in performance critical paths.