docs: List<String> sortedJsFiles() {
          return jsFiles().stream()
                  .sorted((file1, file2) -> {
                      // Vendor JS scripts go first
                      if (vendorJsFiles.contains(file1)) {
                          return -1;
                      }
                      if (vendorJsFiles.contains(file2)) {
                          return 1;
                      }
                      // Polyfill JS script goes second
                      if (file1.equals(polyfillJsFile)) {
                          return -1;
                      }
  
                      if (file2.equals(polyfillJsFile)) {
                          return 1;
                      }
                      // Builtins JS script goes third
                      if (file1.equals(builtinsJsFile)) {
                          return -1;
                      }
  
                      if (file2.equals(builtinsJsFile)) {
                          return 1;
                      }
  
                      // App JS script goes last, as plugins need to be loaded before
                      return file2.compareTo(file1);
                  })
                  .collect(Collectors.toList());
      }