Thnx, I filed a bug, and will add this as suggested extra example.. On 11/29/17, 7:18 PM, "[email protected] on behalf of Eliot Kimber" <[email protected] on behalf of [email protected]> wrote:
>Here’s the code I have: > > for $map in $details > order by map:get($map, 'active') ascending, > map:get($map, 'queued') ascending, >return $map > >Cheers, > >E. > >-- >Eliot Kimber >http://contrext.com > > > >On 11/29/17, 11:46 AM, "[email protected] on behalf >of Geert Josten" <[email protected] on behalf of >[email protected]> wrote: > > Thanks, looks like you are right. > > Can you elaborate on the multiple expressions? > > Cheers, > Geert > > On 11/29/17, 5:30 PM, "[email protected] on >behalf > of Eliot Kimber" <[email protected] on behalf of > [email protected]> wrote: > > >I didn¹t see a place to submit comments in the guide like you can in >the > >reference topics so I¹m posting here. > > > >In http://docs.marklogic.com/guide/xquery/langoverview#id_11626, in >the > >section on the order-by clause, the syntax diagram shows the repeat > >returning to before the ³order by² keyword. > > > >The correct syntax should have the repeat returning *after* the >³order > >by² keyword and before the $varExpr > > > >That is, order by is: > > > >order by expression1, expression2 > > > >not order by expression1, order by expression2 > > > >I also didn¹t see any examples of order-by clauses with multiple > >expressions‹that would be useful to have. > > > >Cheers, > > > >E. > > > >-- > >Eliot Kimber > >http://contrext.com > > > > > > > > > >_______________________________________________ > >General mailing list > >[email protected] > >Manage your subscription at: > >http://developer.marklogic.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > > > >_______________________________________________ >General mailing list >[email protected] >Manage your subscription at: >http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
