diff --git a/export/xml-export.html b/export/xml-export.html
index cd2ec4e..d7ab745 100644
--- a/export/xml-export.html
+++ b/export/xml-export.html
@@ -127,7 +127,7 @@
Login To Skip This Step
JOIN natlangwords nlw
ON nlw.wordid = km.natlangwordid
WHERE vbg.langid=$langid
- ORDER BY vbg.definitionid, km.place
+ ORDER BY vbg.definitionid, km.place, nlw.word, nlw.meaning
");
$sth->execute();
@@ -170,7 +170,7 @@ Login To Skip This Step
JOIN natlangwords nlw
ON nlw.wordid = nlwbg.natlangwordid
WHERE vbg.langid=$langid
- ORDER BY valsi, nlw.word
+ ORDER BY valsi, nlw.word, nlw.meaning, nlwbg.place
");
$sth->execute();