diff NEWS @ 27291:c4f9a0f097a3

unique.m: Add new option "stable" to control output ordering. * NEWS: Announce new option. * unique.m: Rewrite docstring to include "stable" and "sorted" options and documentation. Add two examples to docstring for clarification. Implement "stable" algorithm. Add BIST tests for behavior and input validation.
author Rik <rik@octave.org>
date Thu, 25 Jul 2019 09:07:14 -0700
parents f49226d21c26
children e2ba5f061806
line wrap: on
line diff
--- a/NEWS	Wed Jul 24 12:37:21 2019 -0400
+++ b/NEWS	Thu Jul 25 09:07:14 2019 -0700
@@ -9,6 +9,10 @@
   behavior can be restored by setting `"editinplace"` to `false` and
   `"home"` to `"~/octave"`.
 
+- The `unique` function accepts a new sorting option `"stable"` which
+  will return output values in the same order as the input, rather
+  than in ascending order.
+
 #### Graphics backend
 
 - Graphic primitives now accept a color property value of `"none"`
@@ -58,10 +62,10 @@
   from releases prior to R2012b, can be obtained by using the `"legacy"`
   flag.
 
-- The functions `intersect`, `setxor`, `union`, now accept a `"legacy"`
-  flag which changes the index values (second and third outputs) as well
-  as the orientation of all outputs to match Matlab releases prior to
-  R2012b.
+- The functions `intersect`, `setxor`, and `union` now accept a
+  `"legacy"` flag which changes the index values (second and third
+  outputs) as well as the orientation of all outputs to match Matlab
+  releases prior to R2012b.
 
 - Complex RESTful web services can now be accessed by the `webread` and
   `webwrite` functions alongside with the `weboptions` structure.  One