Skip to content

Instantly share code, notes, and snippets.

Last active December 29, 2015 19:19
What would you like to do?
using System.IO;
using System.Linq;
namespace SortingExample
public class Sorter
static void Main(string[] args)
var lines = File.ReadAllLines(args[0]).OrderBy(a => a);
File.WriteAllLines(args[1], lines);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment