Re: reliably sort?
- To: mathgroup at smc.vnet.net
- Subject: [mg123680] Re: reliably sort?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Thu, 15 Dec 2011 04:55:25 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
On 12/14/11 at 6:02 AM, nycstern at gmail.com (Michael Stern) wrote: >I have noticed that if combine two lists of date/data objects using >Union[], the result is sorted by date. Example data snipped. >Is this reliable behavior? Is there any case in which Union would >/not/ return results that have been properly sorted by date? By default with multi-column data, Union sorts on the first column. Since your example data two columns with dates in the first column, it was sorted by date. This behavior can be relied on with similarly formatted data.