import { uniqueSort } from "https://deno.land/x/html_parser@v0.1.3/src/utils/helpers.ts";
Sort an array of nodes based on their relative position in the document and remove any duplicate nodes. If the array contains nodes that do not belong to the same document, sort order is unspecified.
Type Parameters
T extends Node
Parameters
nodes: T[]
Array of DOM nodes.