Order by 句が機能していないようです。正しい xquery クエリを持っていますか?
for $record in doc('XQuery.xml')/dataroot/RecentIndices_solarFlux
where $record/Month = 1 or
$record/Month = 2
order by $record/Geomagnetic_Smoothed_Ap
return $record
私が得ている出力は次のようなものです:
-1、10.5、11.6、5、8.7
Stylus Studio X14 Release 2 XML Enterprise Suite を使用しています。