sorting
adding declaringNodeType and unique support; introducing parameter type