code: public List<String> getSortedResources() {
  		List<String> resources = new ArrayList<>();
  		try (BufferedReader bf = new BufferedReader(reader)) {
  			String res;
  			while ((res = bf.readLine()) != null) {
  				String name = PathNormalizer.normalizePath(res.trim());
  
  				for (String available : availableResources) {
  					if (PathNormalizer.normalizePath(available).equals(name)) {
  						if (name.endsWith(".js") || name.endsWith(".css"))
  							resources.add(PathNormalizer.joinPaths(dirName, name));
  						else
  							resources.add(PathNormalizer.joinPaths(dirName, name + "/"));
  						availableResources.remove(available);
  						break;
  					}
  				}
  			}
  		} catch (IOException e) {
  			throw new BundlingProcessException("Unexpected IOException reading sort file", e);
  		}
  		return resources;
  	}
docs: Creates a list with the ordered resource names and returns it. If a
  resource is not in the resources dir, it is ignored.
  
  @return the list of ordered resource names