You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/12/21 21:07:42 UTC

[4/6] jena git commit: Stablize test across RDF 1.0 and RDF 1.1

Stablize test across RDF 1.0 and RDF 1.1


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/046d1951
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/046d1951
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/046d1951

Branch: refs/heads/master
Commit: 046d1951a0c24af54fc3ea9402f82dfbd20e4237
Parents: ef33e52
Author: Andy Seaborne <an...@apache.org>
Authored: Sun Dec 21 20:03:43 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Sun Dec 21 20:04:46 2014 +0000

----------------------------------------------------------------------
 jena-arq/testing/ARQ/Sort/sort-2.rq             |   2 +-
 jena-arq/testing/ARQ/Sort/sort-3.rq             |   2 +-
 jena-arq/testing/ARQ/Sort/sort-result-2.ttl     | 336 +++++++++----------
 .../testing/ARQ/Sort/sort-result-2_RDF_10.ttl   | 169 ++++++++++
 .../testing/ARQ/Sort/sort-result-2_RDF_11.ttl   | 169 ++++++++++
 jena-arq/testing/ARQ/Sort/sort-result-3.ttl     | 336 +++++++++----------
 .../testing/ARQ/Sort/sort-result-3_RDF_10.ttl   | 169 ++++++++++
 .../testing/ARQ/Sort/sort-result-3_RDF_11.ttl   | 169 ++++++++++
 8 files changed, 1014 insertions(+), 338 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-2.rq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-2.rq b/jena-arq/testing/ARQ/Sort/sort-2.rq
index ccf9ea6..a86deaa 100644
--- a/jena-arq/testing/ARQ/Sort/sort-2.rq
+++ b/jena-arq/testing/ARQ/Sort/sort-2.rq
@@ -5,4 +5,4 @@ SELECT ?x ?v
 {
     ?x ?p ?v 
 }
-ORDER BY ?v
+ORDER BY ?v ?x

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-3.rq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-3.rq b/jena-arq/testing/ARQ/Sort/sort-3.rq
index 986909e..057c3e6 100644
--- a/jena-arq/testing/ARQ/Sort/sort-3.rq
+++ b/jena-arq/testing/ARQ/Sort/sort-3.rq
@@ -5,4 +5,4 @@ SELECT ?x ?v
 {
     ?x ?p ?v 
 }
-ORDER BY desc(?v)
+ORDER BY desc(?v) ?x

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-2.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-2.ttl b/jena-arq/testing/ARQ/Sort/sort-result-2.ttl
index f9edeb1..1ea6049 100644
--- a/jena-arq/testing/ARQ/Sort/sort-result-2.ttl
+++ b/jena-arq/testing/ARQ/Sort/sort-result-2.ttl
@@ -1,169 +1,169 @@
-@prefix :        <http://example/> .
-@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
-@prefix rs:      <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
-@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix :      <http://example/> .
+@prefix rs:    <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
 
-[]    rdf:type      rs:ResultSet ;
-      rs:resultVariable  "v" ;
-      rs:resultVariable  "x" ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"@en ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      9
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:string ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x6 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      20
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"@FR ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      16
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:integer ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x7 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      19
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :z3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "1"^^xsd:decimal ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      5
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"@en ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      15
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"^^:unknown ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x8 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      18
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x4 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"@fr ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      17
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :y7 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      :abc ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      2
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x9 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      [ 
-                                                    ] ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      1
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"@EN ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      8
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc" ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      7
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:string ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y4 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      12
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :z2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      01 ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      4
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"@EN ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x5 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      14
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      1 ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :z1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      6
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :xyz ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x10 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      3
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"^^:unknown ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y6 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      10
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz" ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      13
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:integer ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y5 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      11
-                    ] .
+[ a                  rs:ResultSet ;
+  rs:resultVariable  "x" , "v" ;
+  rs:size            "20"^^xsd:int ;
+  rs:solution        [ rs:binding  [ rs:value     "1"^^xsd:decimal ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    5
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    13
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     1 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    6
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@FR ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    17
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    10
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    14
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    8
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     []  ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x9 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    1
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    16
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    11
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    7
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    20
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    9
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :abc ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    2
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     01 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    4
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    15
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x8 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    19
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@fr ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    18
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :xyz ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x10 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    3
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    12
+                     ]
+] .

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_10.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_10.ttl b/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_10.ttl
new file mode 100644
index 0000000..f9edeb1
--- /dev/null
+++ b/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_10.ttl
@@ -0,0 +1,169 @@
+@prefix :        <http://example/> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+@prefix rs:      <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[]    rdf:type      rs:ResultSet ;
+      rs:resultVariable  "v" ;
+      rs:resultVariable  "x" ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"@en ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      9
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:string ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x6 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      20
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"@FR ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      16
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:integer ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x7 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      19
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :z3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "1"^^xsd:decimal ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      5
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"@en ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      15
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"^^:unknown ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x8 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      18
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x4 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"@fr ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      17
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :y7 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      :abc ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      2
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x9 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      [ 
+                                                    ] ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      1
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"@EN ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      8
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc" ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      7
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:string ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y4 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      12
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :z2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      01 ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      4
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"@EN ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x5 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      14
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      1 ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :z1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      6
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :xyz ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x10 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      3
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"^^:unknown ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y6 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      10
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz" ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      13
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:integer ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y5 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      11
+                    ] .

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_11.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_11.ttl b/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_11.ttl
new file mode 100644
index 0000000..1ea6049
--- /dev/null
+++ b/jena-arq/testing/ARQ/Sort/sort-result-2_RDF_11.ttl
@@ -0,0 +1,169 @@
+@prefix :      <http://example/> .
+@prefix rs:    <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
+
+[ a                  rs:ResultSet ;
+  rs:resultVariable  "x" , "v" ;
+  rs:size            "20"^^xsd:int ;
+  rs:solution        [ rs:binding  [ rs:value     "1"^^xsd:decimal ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    5
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    13
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     1 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    6
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@FR ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    17
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    10
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    14
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    8
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     []  ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x9 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    1
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    16
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    11
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    7
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    20
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    9
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :abc ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    2
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     01 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    4
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    15
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x8 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    19
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@fr ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    18
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :xyz ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x10 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    3
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    12
+                     ]
+] .

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-3.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-3.ttl b/jena-arq/testing/ARQ/Sort/sort-result-3.ttl
index d4d7536..006290e 100644
--- a/jena-arq/testing/ARQ/Sort/sort-result-3.ttl
+++ b/jena-arq/testing/ARQ/Sort/sort-result-3.ttl
@@ -1,169 +1,169 @@
-@prefix :        <http://example/> .
-@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
-@prefix rs:      <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
-@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix :      <http://example/> .
+@prefix rs:    <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
 
-[]    rdf:type      rs:ResultSet ;
-      rs:resultVariable  "v" ;
-      rs:resultVariable  "x" ;
-      rs:solution   [ rs:binding    [ rs:value      :x7 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"^^xsd:integer ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      2
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x9 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      [ 
-                                                    ] ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      20
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :y6 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "abc"^^:unknown ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      11
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"^^:unknown ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x8 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      3
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:string ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x6 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      1
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz"@EN ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x5 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      7
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :z3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "1"^^xsd:decimal ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      16
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x4 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"@fr ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      4
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :y1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "abc" ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      14
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "xyz" ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :x1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      8
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:string ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y4 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      9
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:integer ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y5 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      10
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"@FR ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      5
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x10 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      :xyz ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      18
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :x2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "xyz"@en ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      6
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :abc ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:binding    [ rs:value      :y7 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:index      19
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :z1 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      1 ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      15
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :y3 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "abc"@EN ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      13
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :z2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      01 ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      17
-                    ] ;
-      rs:solution   [ rs:binding    [ rs:value      :y2 ;
-                                      rs:variable   "x"
-                                    ] ;
-                      rs:binding    [ rs:value      "abc"@en ;
-                                      rs:variable   "v"
-                                    ] ;
-                      rs:index      12
-                    ] .
+[ a                  rs:ResultSet ;
+  rs:resultVariable  "x" , "v" ;
+  rs:size            "20"^^xsd:int ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    10
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@fr ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    3
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    12
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    14
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     []  ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x9 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    20
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    7
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    5
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :abc ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    19
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "1"^^xsd:decimal ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    16
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@FR ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    4
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x8 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    2
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    9
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :xyz ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x10 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    18
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     01 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    17
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    13
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    1
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    11
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     1 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    15
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    8
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    6
+                     ]
+] .

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_10.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_10.ttl b/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_10.ttl
new file mode 100644
index 0000000..d4d7536
--- /dev/null
+++ b/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_10.ttl
@@ -0,0 +1,169 @@
+@prefix :        <http://example/> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+@prefix rs:      <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[]    rdf:type      rs:ResultSet ;
+      rs:resultVariable  "v" ;
+      rs:resultVariable  "x" ;
+      rs:solution   [ rs:binding    [ rs:value      :x7 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"^^xsd:integer ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      2
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x9 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      [ 
+                                                    ] ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      20
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :y6 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "abc"^^:unknown ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      11
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"^^:unknown ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x8 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      3
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"^^xsd:string ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x6 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      1
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz"@EN ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x5 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      7
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :z3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "1"^^xsd:decimal ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      16
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x4 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"@fr ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      4
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :y1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "abc" ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      14
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "xyz" ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :x1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      8
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:string ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y4 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      9
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      "abc"^^xsd:integer ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y5 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      10
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"@FR ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      5
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x10 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      :xyz ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      18
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :x2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "xyz"@en ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      6
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :abc ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:binding    [ rs:value      :y7 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:index      19
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :z1 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      1 ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      15
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :y3 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "abc"@EN ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      13
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :z2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      01 ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      17
+                    ] ;
+      rs:solution   [ rs:binding    [ rs:value      :y2 ;
+                                      rs:variable   "x"
+                                    ] ;
+                      rs:binding    [ rs:value      "abc"@en ;
+                                      rs:variable   "v"
+                                    ] ;
+                      rs:index      12
+                    ] .

http://git-wip-us.apache.org/repos/asf/jena/blob/046d1951/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_11.ttl
----------------------------------------------------------------------
diff --git a/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_11.ttl b/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_11.ttl
new file mode 100644
index 0000000..006290e
--- /dev/null
+++ b/jena-arq/testing/ARQ/Sort/sort-result-3_RDF_11.ttl
@@ -0,0 +1,169 @@
+@prefix :      <http://example/> .
+@prefix rs:    <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
+
+[ a                  rs:ResultSet ;
+  rs:resultVariable  "x" , "v" ;
+  rs:size            "20"^^xsd:int ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    10
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@fr ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    3
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    12
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y4 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    14
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     []  ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x9 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    20
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    7
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    5
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :abc ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    19
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "1"^^xsd:decimal ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    16
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@FR ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x3 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    4
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^:unknown ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x8 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    2
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    9
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     :xyz ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x10 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    18
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     01 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    17
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    13
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"^^xsd:integer ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x7 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    1
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "abc"@en ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :y2 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    11
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     1 ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :z1 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    15
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz" ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x6 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    8
+                     ] ;
+  rs:solution        [ rs:binding  [ rs:value     "xyz"@EN ;
+                                     rs:variable  "v"
+                                   ] ;
+                       rs:binding  [ rs:value     :x5 ;
+                                     rs:variable  "x"
+                                   ] ;
+                       rs:index    6
+                     ]
+] .