Oracle Message PLS-00626 - partitioned/clustered/ordered parameter must be a function argument

ERRORpartitioned/clustered/ordered parameter must be a function argument
CAUSEA partitioning or clustering/ordering specification specified on an argument that is not one of the function arguments.
ACTIONSpecify partitioning/clustering/ordering based on the function ref-cursor formal argument.