Answers for "sort where c#"

C#
0

sorting c#

Input : array = {5, 9, 1, 4, 6, 8};
Output : 9, 8, 6, 5, 4, 1

Input : array = {1, 9, 6, 7, 5, 9};
Output : 9 9 7 6 5 1

Input : array = {-8, 9, 7, 7, 0, 9, -9};
Output : 9 9 7 7 0 -8 -9
Posted by: Guest on February-02-2022
0

OrderBy c#

foreach (string s in fruits.OrderBy(s=>s, StringComparer.OrdinalIgnoreCase ) )
{
  Console.WriteLine(s);
}
Posted by: Guest on July-29-2021

C# Answers by Framework

Browse Popular Code Answers by Language