code: public static void sort(File file, Comparator<String> comparator, final String encoding)
  		throws FileNotFoundException, IOException
  	{
  		List<String> lines = ReadFileExtensions.readLinesInList(file);
  		Collections.sort(lines, comparator);
  		WriteFileExtensions.writeLinesToFile(file, lines, encoding);
  	}
docs: Sort the file content from the given {@link File}.
  
  @param file
  the file
  @param comparator
  the comparator
  @param encoding
  the encoding
  @throws FileNotFoundException
  is thrown if the given file is not found.
  @throws IOException
  Signals that an I/O exception has occurred.