using System.Collections.Generic;
static void Main(string[] args)
List<int> lstNumber = new List<int>() { 10, 9, 3, 1, 100, 4, 101, 121, 5, 130, 140, 100, 105, 0, 11, 2, 3, 4, 78, 98, 46, 50, 67, 66, 68 };
Console.WriteLine("Original list:");
List<int> lstNumberTmp = new List<int>(lstNumber);
for (int i = 20; i >= 0; i--)
.Select((f, i) => new { f, i })
.Select(x => x.i).ToList();
foreach (var item in indices)
lstNumber.RemoveAt(item);
lstNumber.Insert(0, tmp);
Console.WriteLine("List sorted:");
public static void PrintList(List<int> lst)
foreach (var item in lst)
Console.Write(item + " ");