( FOR $u IN document("users.xml")//user_tuple RETURN $u/name, ( FOR $i IN document("items.xml")//item_tuple [itemno=$u/offered_by] RETURN $i/description/text() SORTBY(.) ) SORTBY(name) )