[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Default sort order in order by

Jens Teubner jens.teubner at in.tum.de
Thu May 18 22:16:54 PDT 2006


default order by
On Thu, May 18, 2006 at 11:02:49PM +0400, Ivan Shcheklein wrote:

> I can't find out from the XQuery specification what is the default
> value - ascending or descending - in the order by modifiers?

The XQuery 1.0 Candidate Recommendation is quite clear about this
(http://www.w3.org/TR/xquery/, Section 3.8.3):

  1. If V1 is greater-than V2: If the orderspec specifies descending,
     then T1 precedes T2 in the tuple stream; otherwise, T2 precedes T1
     in the tuple stream.

So, everything but `descending' is to be interpreted as `ascending',
including the absence of an explicit modifier.

Jens

-- 
Jens Teubner
Technische Universitaet Muenchen, Department of Informatics
D-85748 Garching, Germany
Tel: +49 89 289-17259     Fax: +49 89 289-17263

So, is the glass half empty, half full,
or just twice as large as it needs to be?


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.