diff options
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index e7c86e97c..6c5115582 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -64,7 +64,7 @@ def unique1d(ar1, retindx=False): return perm.compress(flag), aux.compress(flag) else: - ar = numpy.array(sorted(ar)) + ar.sort() return ar.compress(ediff1d(ar, 1) != 0) ## |