private void setNodes(@Nonnull List<Node> temp, @Nonnull ObservableList<Node> children) {
		temp.sort((o1, o2) -> {
			int i1 = o1 instanceof FileEntry e ? e.path == primary.get() ? Integer.MIN_VALUE : paths.indexOf(e.path) : 0;
			int i2 = o2 instanceof FileEntry e ? e.path == primary.get() ? Integer.MIN_VALUE : paths.indexOf(e.path) : 0;
			return Integer.compare(i1, i2);
		});
		temp.forEach(n -> {
			if (n instanceof FileEntry childentry)
				childentry.updateButtons();
		});
		children.setAll(temp);
	}
Assigns the temporary list, one ordered, to the child list container.

@param temp
		Temporary items to sort.
@param children
		Children list to update with sorted items.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/WorkspaceBuilderPane.java