fork(13) download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Globalization;
  5. using System.Linq;
  6. using System.Linq.Expressions;
  7. using System.Text;
  8.  
  9. namespace ProgramConsole
  10. {
  11. public class Program
  12. {
  13. public static void Main(string[] args)
  14. {
  15. List<String> listCustomFields = new List<String>() { "FirstName", "MiddleName", "Class" };
  16. listCustomFields = listCustomFields.OrderBy(n => n).ToList();
  17.  
  18. foreach (var item in listCustomFields)
  19. {
  20. Console.WriteLine(item);
  21. }
  22.  
  23. }
  24. }
  25. }
Success #stdin #stdout 0.07s 34144KB
stdin
Standard input is empty
stdout
Class
FirstName
MiddleName