Java 8 – Files.list ordered

protected Stream getFiles(String path) throws IOException {
  return Files.list(Paths.get(path)).filter(Files::isRegularFile).sorted();
}