Skip to content

Instantly share code, notes, and snippets.

@Ellyll
Last active December 29, 2015 19:19
Show Gist options
  • Save Ellyll/7716439 to your computer and use it in GitHub Desktop.
Save Ellyll/7716439 to your computer and use it in GitHub Desktop.
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