My file have their columns by Number ID, Name and Salary. which i need sort by the salary.

```
        2,Sam,500.00
        6,Mike,400.00
        8,Robert,156.00
        3,Steve,100.85
        9,Anderson,234.90

```

My Code Read the Data from the CSV File like this way...

```
        List<string[]> fileContent = new List<string[]>();

        using (FileStream reader = File.OpenRead(@"C:\File.csv"))

        using (TextFieldParser parser = new TextFieldParser(reader))
        {
            parser.TrimWhiteSpace = true;
            parser.Delimiters = new[] { "," };
            parser.HasFieldsEnclosedInQuotes = true;

            while (!parser.EndOfData)
            {
                string[] line = parser.ReadFields();

                foreach (string fieldRowCell in line)
                {
                    Console.WriteLine(fieldRowCell);

                    fileContent.Add(line);
                }
            }
        }

```

and last I need to write a file with the data Ordered

```
     File.WriteAllLines(@"C:\Result.csv", fieldRowCell);

```