private static String normalize(String path) {

		try {
			Path p = Paths.get(path);
			Path normalized = p.normalize();
			Path absolutePath = normalized.toAbsolutePath();
			return absolutePath.toString();
		}
		catch (InvalidPathException e) {
			// we have seen odd strings being placed into the classpath--ignore them, as we
			// don't know how to use them
			log.trace("Invalid path '{}'", path);
			return path;
		}
	}
Sorts the given {@link List} of {@link Class}es first by their defined priority, then by
their name.

@param list The {@link List} of {@link Class}es to sort. This {@link List} will be modified.
Ghidra/Framework/Generic/src/main/java/ghidra/util/classfinder/ClassSearcher.java