# ISSortRemoveDups
Sorts the indices of an index set, removing duplicates. 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode ISSortRemoveDups(IS is)
```
Collective


## Input Parameters

- ***is -*** the index set





## See Also
 `ISSort()`, `ISSorted()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/interface/index.c.html#ISSortRemoveDups">src/vec/is/is/interface/index.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/block/block.c.html#ISSortRemoveDups_Block">ISSortRemoveDups_Block in src/vec/is/is/impls/block/block.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/general/general.c.html#ISSortRemoveDups_General">ISSortRemoveDups_General in src/vec/is/is/impls/general/general.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/index.c)


[Index of all IS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
