116117118119120121122123
Collections.sort(results, new NodeComparator(context.getNavigator())); return results; } catch (ClassCastException e) { throw new XPathSyntaxException(this.getText(), context.getPosition(), "Unions are only allowed over node-sets"); } }