sort bug

Saturday, 13 July 2013 · 1 message
HR
Hans-Juergen Rennau13 Jul 2013 20:31 #

Dear Basex team,

it seems to me that there is a little bug in the FLWOR sort.

Code:

for $i in 1 to 3
for $j in ('a', 'b', 'c')
order by $i descending
return
   concat($i, $j)

Expected output: 3a 3b 3c 2a 2b 2c 1a 1b 1c

Actual output: 3c 3b 3a 2a 2b 2c 1c 1b 1a

Using the latest stable snapshot.

Kind regards, Hans-Juergen


⚡Generated with XQuery