public static <V extends VisualVertex> List<V> createCollectionWithZOrderBySelection(
			Collection<V> vertices) {
		List<V> list = new LinkedList<>();
		List<V> selectedList = new LinkedList<>();
		for (V vertex : vertices) {
			double emphasis = vertex.getEmphasis();
			if (vertex.isSelected() || emphasis != 0) {
				selectedList.add(vertex);
			}
			else {
				list.add(vertex);
			}
		}

		list.addAll(selectedList);

		return list;
	}
Moves the selected vertices to the end of the list of vertices so that when picked (or 
painted), we will prefer the selected vertices, since we have configured the algorithms for
the graph stuff to prefer the last accessed vertex (like when picking and painting).

@param vertices the vertices to order
@return the given vertices, ordered by selected/emphasized state
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/GraphViewerUtils.java