I need to sort the array from minimum to maximum value, but I need to return only the index of array after sorting it. I dont want to swap values, I just need to return the valu
var indexes = arr.Select((i, inx) => new { i, inx }) .OrderBy(x => x.i) .Select(x => x.inx) .ToArray();