To build run "haxe lineSorter.hxml".
You'll need the format library, which can be installed by using "haxelib install format".
Run by executing "neko bin/lineSorter.n filename". Only PNG is supported right now.
The resulting file will be located at filename-output.png.