Create a gist now

Instantly share code, notes, and snippets.

@Ellyll /Sorter.cs
Last active Dec 29, 2015

Embed
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