orderedIndices property
The indices that would order the data.
Example:
final xs = [1, 5, 3, 2, 10, 6].toNumericColumn(),
indices = xs.orderedIndices;
print(xs);
print(indices);
print(xs.valuesAtIndices(indices));
NumericColumn [1, 5, 3, 2, 10, 6]
[0, 3, 2, 1, 5, 4]
[1, 2, 3, 5, 6, 10]
Output:
Implementation
List<int> get orderedIndices => [for (var i = 0; i < length; i++) i]
..sort((a, b) => this[a].compareTo(this[b]));