Skip to content

Commit

Permalink
Fetch xml data out of the dom sorted.
Browse files Browse the repository at this point in the history
  • Loading branch information
akreuzkamp committed Aug 13, 2014
1 parent 38b909a commit e25251f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtcore.js
Expand Up @@ -3018,7 +3018,7 @@ p.$setNSDecls = function(newVal) {
p.reload = function() {
if ((this.xml === "" && this.source === "") || this.query === "" || this.roles.length === 0)
return;
var dataset = this.$dom.evaluate(this.query, this.$dom, this.$resolveNS, XPathResult.ANY_TYPE, null);
var dataset = this.$dom.evaluate(this.query, this.$dom, this.$resolveNS, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
this.$data = [];
for (var node = dataset.iterateNext(); node; node = dataset.iterateNext()) {
this.$data.push(node);
Expand Down

0 comments on commit e25251f

Please sign in to comment.