--- a/tests/cjk/cjk.sh
+++ b/tests/cjk/cjk.sh
@@ -8,10 +8,16 @@
# We need an UTF-8 locale here for recollq arg transcoding
LANG=en_US.UTF-8
export LANG
-recollq 'keyword:ckjtsthuniique まず' 2> $mystderr |
- egrep -v '^Recoll query: ' > $mystdout
-recollq 'keyword:ckjtsthuniique ます' 2>> $mystderr |
- egrep -v '^Recoll query: ' >> $mystdout
+
+# The following tests have multiple results and the order keeps
+# changing (relevance changes). Use sort to keep it quiet
+
+(
+
+recollq 'keyword:ckjtsthuniique まず' |sort
+recollq 'keyword:ckjtsthuniique ます' |sort
+
+) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1