You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by va...@apache.org on 2022/12/13 22:39:03 UTC

[tinkerpop] branch 3.6-dev updated (ae18966234 -> 7f1eaed2b4)

This is an automated email from the ASF dual-hosted git repository.

valentyn pushed a change to branch 3.6-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


    from ae18966234 Merge pull request #1893 from apache/TINKERPOP-2816-3.6
     add a97738eb87 improving tests for more consistent results
     add d02ab0ced5 Merge pull request #1892 from apache/TINKERPOP-2816-3.5
     new 7f1eaed2b4 merge from 3.5

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs |  4 +--
 gremlin-go/driver/cucumber/gremlin.go              |  4 +--
 .../gremlin-javascript/test/cucumber/gremlin.js    |  4 +--
 gremlin-python/src/main/python/radish/gremlin.py   |  4 +--
 .../process/traversal/step/branch/RepeatTest.java  | 13 ++++----
 .../process/traversal/step/map/OrderTest.java      | 10 +++---
 .../gremlin/test/features/branch/Repeat.feature    | 37 +++++++++++-----------
 .../gremlin/test/features/map/Order.feature        |  6 ++--
 .../spark/SparkGraphFeatureIntegrateTest.java      |  2 +-
 .../gremlin/tinkergraph/TinkerGraphWorld.java      |  2 +-
 10 files changed, 44 insertions(+), 42 deletions(-)


[tinkerpop] 01/01: merge from 3.5

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

valentyn pushed a commit to branch 3.6-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 7f1eaed2b4feeb4a4b8053a23217e1172b18a8c0
Merge: ae18966234 d02ab0ced5
Author: Valentyn Kahamlyk <va...@bitquilltech.com>
AuthorDate: Tue Dec 13 14:38:52 2022 -0800

    merge from 3.5

 .../Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs |  4 +--
 gremlin-go/driver/cucumber/gremlin.go              |  4 +--
 .../gremlin-javascript/test/cucumber/gremlin.js    |  4 +--
 gremlin-python/src/main/python/radish/gremlin.py   |  4 +--
 .../process/traversal/step/branch/RepeatTest.java  | 13 ++++----
 .../process/traversal/step/map/OrderTest.java      | 10 +++---
 .../gremlin/test/features/branch/Repeat.feature    | 37 +++++++++++-----------
 .../gremlin/test/features/map/Order.feature        |  6 ++--
 .../spark/SparkGraphFeatureIntegrateTest.java      |  2 +-
 .../gremlin/tinkergraph/TinkerGraphWorld.java      |  2 +-
 10 files changed, 44 insertions(+), 42 deletions(-)

diff --cc gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
index 7dcad2f86e,a6f2c507fa..19f9e16be6
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
@@@ -707,27 -505,20 +707,27 @@@ namespace Gremlin.Net.IntegrationTest.G
                 {"g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().As("v").Map<object>(__.BothE().Values<object>("weight").Fold()).Sum<object>(Scope.Local).As("s").Select<object>("v","s").Order().By(__.Select<object>("s"),Order.Desc)}}, 
                 {"g_V_hasLabelXpersonX_fold_orderXlocalX_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().HasLabel("person").Fold().Order(Scope.Local).By("age")}}, 
                 {"g_V_both_hasLabelXpersonX_order_byXage_descX_name", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Both().HasLabel("person").Order().By("age",Order.Desc).Values<object>("name")}}, 
-                {"g_V_order_byXoutE_count_descX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Order().By(__.OutE().Count(),Order.Desc)}}, 
+                {"g_V_order_byXoutE_count_descX_byXnameX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Order().By(__.OutE().Count(),Order.Desc).By("name")}}, 
                 {"g_V_hasLabelXpersonX_order_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().HasLabel("person").Order().By("age")}}, 
 +               {"g_V_order_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Order().By("age")}}, 
 +               {"g_V_fold_orderXlocalX_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Fold().Order(Scope.Local).By("age")}}, 
 +               {"g_V_fold_orderXlocalX_byXage_descX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Fold().Order(Scope.Local).By("age",Order.Desc)}}, 
                 {"g_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Or(__.HasLabel("person"),__.Has("software","name","lop")).Order().By("age")}}, 
 +               {"g_withStrategiesXProductiveByStrategyX_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new ProductiveByStrategy(productiveKeys: new List<object> {})).V().Or(__.HasLabel("person"),__.Has("software","name","lop")).Order().By("age")}}, 
                 {"g_VX1X_hasXlabel_personX_mapXmapXint_ageXX_orderXlocalX_byXvalues_descX_byXkeys_ascX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V((Vertex) p["v1"]).HasLabel("person").Map<object>((IFunction) p["l1"]).Order(Scope.Local).By(Column.Values,Order.Desc).By(Column.Keys,Order.Asc)}}, 
 +               {"g_V_hasXsong_name_OHBOYX_outXfollowedByX_outXfollowedByX_order_byXperformancesX_byXsongType_descX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Has("song","name","OH BOY").Out("followedBy").Out("followedBy").Order().By("performances").By("songType",Order.Desc).By("name")}}, 
 +               {"g_V_hasLabelXsongX_order_byXperformances_descX_byXnameX_rangeX110_120X_name", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().HasLabel("song").Order().By("performances",Order.Desc).By("name").Range<object>(110,120).Values<object>("name")}}, 
                 {"g_VX1X_elementMap_orderXlocalX_byXkeys_descXunfold", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V(p["vid1"]).ElementMap<object>().Order(Scope.Local).By(Column.Keys,Order.Desc).Unfold<object>()}}, 
 -               {"g_V_pageRank_hasXpageRankX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().Has("gremlin.pageRankVertexProgram.pageRank"), (g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().Has("gremlin.pageRankVertexPr [...]
 -               {"g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().Out("created").PageRank().With("~tinkerpop.pageRank.edges",__.BothE()).With("~tinkerpop.pageRank.propertyName","projectRank").With("~tinkerpop. [...]
 -               {"g_V_pageRank_order_byXpageRank_descX_byXnameX_name", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank",Order.Desc).By("name").Values<object>("name")}}, 
 -               {"g_V_pageRank_order_byXpageRank_descX_name_limitX2X", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank",Order.Desc).Values<object>("name").Limit<object>(2)}}, 
 -               {"g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().With("~tinkerpop.pageRank.edges",__.OutE("knows")).With("~tinkerpop.pageRank.propertyName","friendRank").Project<object>("name","friendR [...]
 -               {"g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().HasLabel("person").PageRank().With("~tinkerpop.pageRank.propertyName","pageRank").Project<object>("name","pageRank").By("name").By(__.Values<object>("pageRan [...]
 -               {"g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().PageRank().With("~tinkerpop.pageRank.propertyName","pageRank").As("a").Out("knows").Values<object>("pageRank").As("b").Select<object>("a","b").By().By(__.Math("ce [...]
 -               {"g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().HasLabel("software").Has("name","ripple").PageRank(1.0).With("~tinkerpop.pageRank.edges [...]
 -               {"g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.WithStrategies(new VertexProgramStrategy(graphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer")).V().Out("created").Group("m").By(T.Label).PageRank(1.0).With("~tinkerpop.pageRank.propertyName","pageRank").With("~t [...]
 +               {"g_VX1X_elementMap_orderXlocalX_byXkeys_ascXunfold", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V(p["vid1"]).ElementMap<object>().Order(Scope.Local).By(Column.Keys,Order.Asc).Unfold<object>()}}, 
 +               {"g_V_pageRank_hasXpageRankX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().PageRank().Has("gremlin.pageRankVertexProgram.pageRank")}}, 
 +               {"g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Out("created").PageRank().With("~tinkerpop.pageRank.edges",__.BothE()).With("~tinkerpop.pageRank.propertyName","projectRank").With("~tinkerpop.pageRank.times",0).ValueMap<object,object>("name","projectRank")}}, 
 +               {"g_V_pageRank_order_byXpageRank_descX_byXnameX_name", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank",Order.Desc).By("name").Values<object>("name")}}, 
 +               {"g_V_pageRank_order_byXpageRank_descX_name_limitX2X", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank",Order.Desc).Values<object>("name").Limit<object>(2)}}, 
 +               {"g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().PageRank().With("~tinkerpop.pageRank.edges",__.OutE("knows")).With("~tinkerpop.pageRank.propertyName","friendRank").Project<object>("name","friendRank").By("name").By(__.Values<object>("friendRank").Math("ceil(_ * 100)"))}}, 
 +               {"g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().HasLabel("person").PageRank().With("~tinkerpop.pageRank.propertyName","pageRank").Project<object>("name","pageRank").By("name").By(__.Values<object>("pageRank").Math("ceil(_ * 100)"))}}, 
 +               {"g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().PageRank().With("~tinkerpop.pageRank.propertyName","pageRank").As("a").Out("knows").Values<object>("pageRank").As("b").Select<object>("a","b").By().By(__.Math("ceil(_ * 100)"))}}, 
 +               {"g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().HasLabel("software").Has("name","ripple").PageRank(1.0).With("~tinkerpop.pageRank.edges",__.InE("created")).With("~tinkerpop.pageRank.times",1).With("~tinkerpop.pageRank.propertyName","priors").In("created") [...]
 +               {"g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Out("created").Group("m").By(T.Label).PageRank(1.0).With("~tinkerpop.pageRank.propertyName","pageRank").With("~tinkerpop.pageRank.edges",__.InE()).With("~tinkerpop.pageRank.times",1).In("created").Group("m").By("pageRank").Cap<objec [...]
                 {"g_VX1X_name_path", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V(p["vid1"]).Values<object>("name").Path()}}, 
                 {"g_VX1X_out_path_byXageX_byXnameX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V(p["vid1"]).Out().Path().By("age").By("name")}}, 
                 {"g_V_repeatXoutX_timesX2X_path_byXitX_byXnameX_byXlangX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Repeat(__.Out()).Times(2).Path().By().By("name").By("lang")}}, 
diff --cc gremlin-go/driver/cucumber/gremlin.go
index cddb4195ae,4bace846ea..1d42db6d0f
--- a/gremlin-go/driver/cucumber/gremlin.go
+++ b/gremlin-go/driver/cucumber/gremlin.go
@@@ -678,27 -476,20 +678,27 @@@ var translationMap = map[string][]func(
      "g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().As("v").Map(gremlingo.T__.BothE().Values("weight").Fold()).Sum(gremlingo.Scope.Local).As("s").Select("v", "s").Order().By(gremlingo.T__.Select("s"), gremlingo.Order.Desc)}}, 
      "g_V_hasLabelXpersonX_fold_orderXlocalX_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().HasLabel("person").Fold().Order(gremlingo.Scope.Local).By("age")}}, 
      "g_V_both_hasLabelXpersonX_order_byXage_descX_name": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Both().HasLabel("person").Order().By("age", gremlingo.Order.Desc).Values("name")}}, 
-     "g_V_order_byXoutE_count_descX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Order().By(gremlingo.T__.OutE().Count(), gremlingo.Order.Desc)}}, 
+     "g_V_order_byXoutE_count_descX_byXnameX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Order().By(gremlingo.T__.OutE().Count(), gremlingo.Order.Desc).By("name")}}, 
      "g_V_hasLabelXpersonX_order_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().HasLabel("person").Order().By("age")}}, 
 +    "g_V_order_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Order().By("age")}}, 
 +    "g_V_fold_orderXlocalX_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Fold().Order(gremlingo.Scope.Local).By("age")}}, 
 +    "g_V_fold_orderXlocalX_byXage_descX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Fold().Order(gremlingo.Scope.Local).By("age", gremlingo.Order.Desc)}}, 
      "g_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Or(gremlingo.T__.HasLabel("person"), gremlingo.T__.Has("software", "name", "lop")).Order().By("age")}}, 
 +    "g_withStrategiesXProductiveByStrategyX_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.ProductiveByStrategy(gremlingo.ProductiveByStrategyConfig{ProductiveKeys: []string{}})).V().Or(gremlingo.T__.HasLabel("person"), gremlingo.T__.Has("software", "name", "lop")).Order().By("age")}}, 
      "g_VX1X_hasXlabel_personX_mapXmapXint_ageXX_orderXlocalX_byXvalues_descX_byXkeys_ascX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V(p["v1"]).HasLabel("person").Map(p["l1"]).Order(gremlingo.Scope.Local).By(gremlingo.Column.Values, gremlingo.Order.Desc).By(gremlingo.Column.Keys, gremlingo.Order.Asc)}}, 
 +    "g_V_hasXsong_name_OHBOYX_outXfollowedByX_outXfollowedByX_order_byXperformancesX_byXsongType_descX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Has("song", "name", "OH BOY").Out("followedBy").Out("followedBy").Order().By("performances").By("songType", gremlingo.Order.Desc).By("name")}}, 
 +    "g_V_hasLabelXsongX_order_byXperformances_descX_byXnameX_rangeX110_120X_name": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().HasLabel("song").Order().By("performances", gremlingo.Order.Desc).By("name").Range(110, 120).Values("name")}}, 
      "g_VX1X_elementMap_orderXlocalX_byXkeys_descXunfold": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V(p["vid1"]).ElementMap().Order(gremlingo.Scope.Local).By(gremlingo.Column.Keys, gremlingo.Order.Desc).Unfold()}}, 
 -    "g_V_pageRank_hasXpageRankX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().PageRank().Has("gremlin.pageRankVertexProgram.pageRank")}, func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlin [...]
 -    "g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().Out("created").PageRank().With("~tinkerpop.pageRank.edges", gremlingo.T__.BothE()).With("~tink [...]
 -    "g_V_pageRank_order_byXpageRank_descX_byXnameX_name": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank", gremlingo.Order.Desc).By("name").Values("name")}}, 
 -    "g_V_pageRank_order_byXpageRank_descX_name_limitX2X": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank", gremlingo.Order.Desc).Values("name").Limit(2)}}, 
 -    "g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().PageRank().With("~tinkerpop.pageRank.edges", gremlingo.T__.OutE("knows")).With("~tinkerpop.pageRan [...]
 -    "g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().HasLabel("person").PageRank().With("~tinkerpop.pageRank.propertyName", "pageRank").Project("name", "pageRank [...]
 -    "g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().PageRank().With("~tinkerpop.pageRank.propertyName", "pageRank").As("a").Out("knows").Values("pageRank").As("b").S [...]
 -    "g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().HasLabel("software").Has("name", "ripp [...]
 -    "g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.WithStrategies(gremlingo.VertexProgramStrategy(gremlingo.VertexProgramStrategyConfig{GraphComputer: "org.apache.tinkerpop.gremlin.process.computer.GraphComputer", })).V().Out("created").Group("m").By(gremlingo.T.Label).PageRank(1.0).W [...]
 +    "g_VX1X_elementMap_orderXlocalX_byXkeys_ascXunfold": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V(p["vid1"]).ElementMap().Order(gremlingo.Scope.Local).By(gremlingo.Column.Keys, gremlingo.Order.Asc).Unfold()}}, 
 +    "g_V_pageRank_hasXpageRankX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().PageRank().Has("gremlin.pageRankVertexProgram.pageRank")}}, 
 +    "g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Out("created").PageRank().With("~tinkerpop.pageRank.edges", gremlingo.T__.BothE()).With("~tinkerpop.pageRank.propertyName", "projectRank").With("~tinkerpop.pageRank.times", 0).ValueMap("name", "projectRank")}}, 
 +    "g_V_pageRank_order_byXpageRank_descX_byXnameX_name": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank", gremlingo.Order.Desc).By("name").Values("name")}}, 
 +    "g_V_pageRank_order_byXpageRank_descX_name_limitX2X": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().PageRank().Order().By("gremlin.pageRankVertexProgram.pageRank", gremlingo.Order.Desc).Values("name").Limit(2)}}, 
 +    "g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().PageRank().With("~tinkerpop.pageRank.edges", gremlingo.T__.OutE("knows")).With("~tinkerpop.pageRank.propertyName", "friendRank").Project("name", "friendRank").By("name").By(gremlingo.T__.Values("friendRank").Math("ceil(_ * 100)"))}}, 
 +    "g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().HasLabel("person").PageRank().With("~tinkerpop.pageRank.propertyName", "pageRank").Project("name", "pageRank").By("name").By(gremlingo.T__.Values("pageRank").Math("ceil(_ * 100)"))}}, 
 +    "g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().PageRank().With("~tinkerpop.pageRank.propertyName", "pageRank").As("a").Out("knows").Values("pageRank").As("b").Select("a", "b").By().By(gremlingo.T__.Math("ceil(_ * 100)"))}}, 
 +    "g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().HasLabel("software").Has("name", "ripple").PageRank(1.0).With("~tinkerpop.pageRank.edges", gremlingo.T__.InE("created")).With("~tinkerpop.pageRank.times", 1).With("~tinkerpop.pageRank.propertyName", "prior [...]
 +    "g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Out("created").Group("m").By(gremlingo.T.Label).PageRank(1.0).With("~tinkerpop.pageRank.propertyName", "pageRank").With("~tinkerpop.pageRank.edges", gremlingo.T__.InE()).With("~tinkerpop.pageRank.times", 1).In("created").Group("m" [...]
      "g_VX1X_name_path": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V(p["vid1"]).Values("name").Path()}}, 
      "g_VX1X_out_path_byXageX_byXnameX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V(p["vid1"]).Out().Path().By("age").By("name")}}, 
      "g_V_repeatXoutX_timesX2X_path_byXitX_byXnameX_byXlangX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Repeat(gremlingo.T__.Out()).Times(2).Path().By().By("name").By("lang")}}, 
diff --cc gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
index e7850bfd3b,bd7a0c8d3a..e113e46228
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
@@@ -697,27 -493,20 +697,27 @@@ const gremlins = 
      g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX: [function({g}) { return g.V().as("v").map(__.bothE().values("weight").fold()).sum(Scope.local).as("s").select("v","s").order().by(__.select("s"),Order.desc) }], 
      g_V_hasLabelXpersonX_fold_orderXlocalX_byXageX: [function({g}) { return g.V().hasLabel("person").fold().order(Scope.local).by("age") }], 
      g_V_both_hasLabelXpersonX_order_byXage_descX_name: [function({g}) { return g.V().both().hasLabel("person").order().by("age",Order.desc).values("name") }], 
-     g_V_order_byXoutE_count_descX: [function({g}) { return g.V().order().by(__.outE().count(),Order.desc) }], 
+     g_V_order_byXoutE_count_descX_byXnameX: [function({g}) { return g.V().order().by(__.outE().count(),Order.desc).by("name") }], 
      g_V_hasLabelXpersonX_order_byXageX: [function({g}) { return g.V().hasLabel("person").order().by("age") }], 
 +    g_V_order_byXageX: [function({g}) { return g.V().order().by("age") }], 
 +    g_V_fold_orderXlocalX_byXageX: [function({g}) { return g.V().fold().order(Scope.local).by("age") }], 
 +    g_V_fold_orderXlocalX_byXage_descX: [function({g}) { return g.V().fold().order(Scope.local).by("age",Order.desc) }], 
      g_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX: [function({g}) { return g.V().or(__.hasLabel("person"),__.has("software","name","lop")).order().by("age") }], 
 +    g_withStrategiesXProductiveByStrategyX_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX: [function({g}) { return g.withStrategies(new ProductiveByStrategy({productiveKeys:[]})).V().or(__.hasLabel("person"),__.has("software","name","lop")).order().by("age") }], 
      g_VX1X_hasXlabel_personX_mapXmapXint_ageXX_orderXlocalX_byXvalues_descX_byXkeys_ascX: [function({g, l1, v1}) { return g.V(v1).hasLabel("person").map(l1).order(Scope.local).by(Column.values,Order.desc).by(Column.keys,Order.asc) }], 
 +    g_V_hasXsong_name_OHBOYX_outXfollowedByX_outXfollowedByX_order_byXperformancesX_byXsongType_descX: [function({g}) { return g.V().has("song","name","OH BOY").out("followedBy").out("followedBy").order().by("performances").by("songType",Order.desc).by("name") }], 
 +    g_V_hasLabelXsongX_order_byXperformances_descX_byXnameX_rangeX110_120X_name: [function({g}) { return g.V().hasLabel("song").order().by("performances",Order.desc).by("name").range(110,120).values("name") }], 
      g_VX1X_elementMap_orderXlocalX_byXkeys_descXunfold: [function({g, vid1}) { return g.V(vid1).elementMap().order(Scope.local).by(Column.keys,Order.desc).unfold() }], 
 -    g_V_pageRank_hasXpageRankX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().has("gremlin.pageRankVertexProgram.pageRank") }, function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().has("gremlin.pageRankVertexProgram.pageRank") }], 
 -    g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().out("created").pageRank().with_("~tinkerpop.pageRank.edges",__.bothE()).with_("~tinkerpop.pageRank.propertyName","projectRank").with_("~tinkerpop.pageRank.times",0).valueMap("name","projectRank") }], 
 -    g_V_pageRank_order_byXpageRank_descX_byXnameX_name: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().order().by("gremlin.pageRankVertexProgram.pageRank",Order.desc).by("name").values("name") }], 
 -    g_V_pageRank_order_byXpageRank_descX_name_limitX2X: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().order().by("gremlin.pageRankVertexProgram.pageRank",Order.desc).values("name").limit(2) }], 
 -    g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().with_("~tinkerpop.pageRank.edges",__.outE("knows")).with_("~tinkerpop.pageRank.propertyName","friendRank").project("name","friendRank").by("name").by(__.values("friendRank").math("ceil(_ * 100)")) }], 
 -    g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().hasLabel("person").pageRank().with_("~tinkerpop.pageRank.propertyName","pageRank").project("name","pageRank").by("name").by(__.values("pageRank").math("ceil(_ * 100)")) }], 
 -    g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().pageRank().with_("~tinkerpop.pageRank.propertyName","pageRank").as("a").out("knows").values("pageRank").as("b").select("a","b").by().by(__.math("ceil(_ * 100)")) }], 
 -    g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().hasLabel("software").has("name","ripple").pageRank(1.0).with_("~tinkerpop.pageRank.edges",__.inE("created")).with_("~tinkerpop.pageRank.times",1).with_("~tinkerpop [...]
 -    g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX: [function({g}) { return g.withStrategies(new VertexProgramStrategy({graphComputer:"org.apache.tinkerpop.gremlin.process.computer.GraphComputer"})).V().out("created").group("m").by(T.label).pageRank(1.0).with_("~tinkerpop.pageRank.propertyName","pageRank").with_("~tinkerpop.pageRank.edges",__.inE()).with_("~tinkerpop.pageRank.times",1).in [...]
 +    g_VX1X_elementMap_orderXlocalX_byXkeys_ascXunfold: [function({g, vid1}) { return g.V(vid1).elementMap().order(Scope.local).by(Column.keys,Order.asc).unfold() }], 
 +    g_V_pageRank_hasXpageRankX: [function({g}) { return g.V().pageRank().has("gremlin.pageRankVertexProgram.pageRank") }], 
 +    g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX: [function({g}) { return g.V().out("created").pageRank().with_("~tinkerpop.pageRank.edges",__.bothE()).with_("~tinkerpop.pageRank.propertyName","projectRank").with_("~tinkerpop.pageRank.times",0).valueMap("name","projectRank") }], 
 +    g_V_pageRank_order_byXpageRank_descX_byXnameX_name: [function({g}) { return g.V().pageRank().order().by("gremlin.pageRankVertexProgram.pageRank",Order.desc).by("name").values("name") }], 
 +    g_V_pageRank_order_byXpageRank_descX_name_limitX2X: [function({g}) { return g.V().pageRank().order().by("gremlin.pageRankVertexProgram.pageRank",Order.desc).values("name").limit(2) }], 
 +    g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX: [function({g}) { return g.V().pageRank().with_("~tinkerpop.pageRank.edges",__.outE("knows")).with_("~tinkerpop.pageRank.propertyName","friendRank").project("name","friendRank").by("name").by(__.values("friendRank").math("ceil(_ * 100)")) }], 
 +    g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX: [function({g}) { return g.V().hasLabel("person").pageRank().with_("~tinkerpop.pageRank.propertyName","pageRank").project("name","pageRank").by("name").by(__.values("pageRank").math("ceil(_ * 100)")) }], 
 +    g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX: [function({g}) { return g.V().pageRank().with_("~tinkerpop.pageRank.propertyName","pageRank").as("a").out("knows").values("pageRank").as("b").select("a","b").by().by(__.math("ceil(_ * 100)")) }], 
 +    g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX: [function({g}) { return g.V().hasLabel("software").has("name","ripple").pageRank(1.0).with_("~tinkerpop.pageRank.edges",__.inE("created")).with_("~tinkerpop.pageRank.times",1).with_("~tinkerpop.pageRank.propertyName","priors").in_("created").union(__.both(),__.identity()).valueMap("name","priors") }], 
 +    g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX: [function({g}) { return g.V().out("created").group("m").by(T.label).pageRank(1.0).with_("~tinkerpop.pageRank.propertyName","pageRank").with_("~tinkerpop.pageRank.edges",__.inE()).with_("~tinkerpop.pageRank.times",1).in_("created").group("m").by("pageRank").cap("m") }], 
      g_VX1X_name_path: [function({g, vid1}) { return g.V(vid1).values("name").path() }], 
      g_VX1X_out_path_byXageX_byXnameX: [function({g, vid1}) { return g.V(vid1).out().path().by("age").by("name") }], 
      g_V_repeatXoutX_timesX2X_path_byXitX_byXnameX_byXlangX: [function({g}) { return g.V().repeat(__.out()).times(2).path().by().by("name").by("lang") }], 
diff --cc gremlin-python/src/main/python/radish/gremlin.py
index 046ece90eb,0085bb585a..aca1bff6ae
--- a/gremlin-python/src/main/python/radish/gremlin.py
+++ b/gremlin-python/src/main/python/radish/gremlin.py
@@@ -679,27 -478,20 +679,27 @@@ world.gremlins = 
      'g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX': [(lambda g:g.V().as_('v').map(__.bothE().weight.fold()).sum_(Scope.local).as_('s').select('v','s').order().by(__.select('s'),Order.desc))], 
      'g_V_hasLabelXpersonX_fold_orderXlocalX_byXageX': [(lambda g:g.V().hasLabel('person').fold().order(Scope.local).by('age'))], 
      'g_V_both_hasLabelXpersonX_order_byXage_descX_name': [(lambda g:g.V().both().hasLabel('person').order().by('age',Order.desc).name)], 
-     'g_V_order_byXoutE_count_descX': [(lambda g:g.V().order().by(__.outE().count(),Order.desc))], 
+     'g_V_order_byXoutE_count_descX_byXnameX': [(lambda g:g.V().order().by(__.outE().count(),Order.desc).by('name'))], 
      'g_V_hasLabelXpersonX_order_byXageX': [(lambda g:g.V().hasLabel('person').order().by('age'))], 
 +    'g_V_order_byXageX': [(lambda g:g.V().order().by('age'))], 
 +    'g_V_fold_orderXlocalX_byXageX': [(lambda g:g.V().fold().order(Scope.local).by('age'))], 
 +    'g_V_fold_orderXlocalX_byXage_descX': [(lambda g:g.V().fold().order(Scope.local).by('age',Order.desc))], 
      'g_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX': [(lambda g:g.V().or_(__.hasLabel('person'),__.has('software','name','lop')).order().by('age'))], 
 +    'g_withStrategiesXProductiveByStrategyX_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX': [(lambda g:g.withStrategies(*[TraversalStrategy('ProductiveByStrategy',{'productiveKeys':[],'strategy':'org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.ProductiveByStrategy'}, 'org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.ProductiveByStrategy')]).V().or_(__.hasLabel('person'),__.has('software','name','lop')).order().by('age'))], 
      'g_VX1X_hasXlabel_personX_mapXmapXint_ageXX_orderXlocalX_byXvalues_descX_byXkeys_ascX': [(lambda g, l1=None,v1=None:g.V(v1).hasLabel('person').map(l1).order(Scope.local).by(Column.values,Order.desc).by(Column.keys,Order.asc))], 
 +    'g_V_hasXsong_name_OHBOYX_outXfollowedByX_outXfollowedByX_order_byXperformancesX_byXsongType_descX': [(lambda g:g.V().has('song','name','OH BOY').out('followedBy').out('followedBy').order().by('performances').by('songType',Order.desc).by('name'))], 
 +    'g_V_hasLabelXsongX_order_byXperformances_descX_byXnameX_rangeX110_120X_name': [(lambda g:g.V().hasLabel('song').order().by('performances',Order.desc).by('name')[110:120].name)], 
      'g_VX1X_elementMap_orderXlocalX_byXkeys_descXunfold': [(lambda g, vid1=None:g.V(vid1).elementMap().order(Scope.local).by(Column.keys,Order.desc).unfold())], 
 -    'g_V_pageRank_hasXpageRankX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().pageRank().has('gremlin.pageRankVertexProgram.pageRank')), (lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.Gra [...]
 -    'g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().out('created').pageRank().with_('~tinkerpop.pageRank.edges',__.bothE()).with_('~tinkerpop.pageRank.propertyN [...]
 -    'g_V_pageRank_order_byXpageRank_descX_byXnameX_name': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().pageRank().order().by('gremlin.pageRankVertexProgram.pageRank',Order.desc).by('name').name)], 
 -    'g_V_pageRank_order_byXpageRank_descX_name_limitX2X': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().pageRank().order().by('gremlin.pageRankVertexProgram.pageRank',Order.desc).name[0:2])], 
 -    'g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().pageRank().with_('~tinkerpop.pageRank.edges',__.outE('knows')).with_('~tinkerpop.pageRank.propertyName','friendR [...]
 -    'g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().hasLabel('person').pageRank().with_('~tinkerpop.pageRank.propertyName','pageRank').project('name','pageRank').by('name').b [...]
 -    'g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().pageRank().with_('~tinkerpop.pageRank.propertyName','pageRank').as_('a').out('knows').values('pageRank').as_('b').select('a','b [...]
 -    'g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().hasLabel('software').has('name','ripple').pageRank(f [...]
 -    'g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX': [(lambda g:g.withStrategies(*[TraversalStrategy('VertexProgramStrategy',{'graphComputer':'org.apache.tinkerpop.gremlin.process.computer.GraphComputer'}, 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy')]).V().out('created').group('m').by(T.label).pageRank(float(1.0)).with_('~tinkerpop. [...]
 +    'g_VX1X_elementMap_orderXlocalX_byXkeys_ascXunfold': [(lambda g, vid1=None:g.V(vid1).elementMap().order(Scope.local).by(Column.keys,Order.asc).unfold())], 
 +    'g_V_pageRank_hasXpageRankX': [(lambda g:g.V().pageRank().has('gremlin.pageRankVertexProgram.pageRank'))], 
 +    'g_V_outXcreatedX_pageRank_withXedges_bothEX_withXpropertyName_projectRankX_withXtimes_0X_valueMapXname_projectRankX': [(lambda g:g.V().out('created').pageRank().with_('~tinkerpop.pageRank.edges',__.bothE()).with_('~tinkerpop.pageRank.propertyName','projectRank').with_('~tinkerpop.pageRank.times',0).valueMap('name','projectRank'))], 
 +    'g_V_pageRank_order_byXpageRank_descX_byXnameX_name': [(lambda g:g.V().pageRank().order().by('gremlin.pageRankVertexProgram.pageRank',Order.desc).by('name').name)], 
 +    'g_V_pageRank_order_byXpageRank_descX_name_limitX2X': [(lambda g:g.V().pageRank().order().by('gremlin.pageRankVertexProgram.pageRank',Order.desc).name[0:2])], 
 +    'g_V_pageRank_withXedges_outEXknowsXX_withXpropertyName_friendRankX_project_byXnameX_byXvaluesXfriendRankX_mathX': [(lambda g:g.V().pageRank().with_('~tinkerpop.pageRank.edges',__.outE('knows')).with_('~tinkerpop.pageRank.propertyName','friendRank').project('name','friendRank').by('name').by(__.friendRank.math('ceil(_ * 100)')))], 
 +    'g_V_hasLabelXpersonX_pageRank_withXpropertyName_kpageRankX_project_byXnameX_byXvaluesXpageRankX_mathX': [(lambda g:g.V().hasLabel('person').pageRank().with_('~tinkerpop.pageRank.propertyName','pageRank').project('name','pageRank').by('name').by(__.values('pageRank').math('ceil(_ * 100)')))], 
 +    'g_V_pageRank_withXpropertyName_pageRankX_asXaX_outXknowsX_pageRank_asXbX_selectXa_bX_by_byXmathX': [(lambda g:g.V().pageRank().with_('~tinkerpop.pageRank.propertyName','pageRank').as_('a').out('knows').values('pageRank').as_('b').select('a','b').by().by(__.math('ceil(_ * 100)')))], 
 +    'g_V_hasLabelXsoftwareX_hasXname_rippleX_pageRankX1X_withXedges_inEXcreatedX_withXtimes_1X_withXpropertyName_priorsX_inXcreatedX_unionXboth__identityX_valueMapXname_priorsX': [(lambda g:g.V().hasLabel('software').has('name','ripple').pageRank(float(1.0)).with_('~tinkerpop.pageRank.edges',__.inE('created')).with_('~tinkerpop.pageRank.times',1).with_('~tinkerpop.pageRank.propertyName','priors').in_('created').union(__.both(),__.identity()).valueMap('name','priors'))], 
 +    'g_V_outXcreatedX_groupXmX_byXlabelX_pageRankX1X_withXpropertyName_pageRankX_withXedges_inEX_withXtimes_1X_inXcreatedX_groupXmX_byXpageRankX_capXmX': [(lambda g:g.V().out('created').group('m').by(T.label).pageRank(float(1.0)).with_('~tinkerpop.pageRank.propertyName','pageRank').with_('~tinkerpop.pageRank.edges',__.inE()).with_('~tinkerpop.pageRank.times',1).in_('created').group('m').by('pageRank').cap('m'))], 
      'g_VX1X_name_path': [(lambda g, vid1=None:g.V(vid1).name.path())], 
      'g_VX1X_out_path_byXageX_byXnameX': [(lambda g, vid1=None:g.V(vid1).out().path().by('age').by('name'))], 
      'g_V_repeatXoutX_timesX2X_path_byXitX_byXnameX_byXlangX': [(lambda g:g.V().repeat(__.out()).times(2).path().by().by('name').by('lang'))], 
diff --cc gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/branch/Repeat.feature
index cfc8d6bea7,0000000000..bbc2615814
mode 100644,000000..100644
--- a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/branch/Repeat.feature
+++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/branch/Repeat.feature
@@@ -1,372 -1,0 +1,373 @@@
 +# Licensed to the Apache Software Foundation (ASF) under one
 +# or more contributor license agreements.  See the NOTICE file
 +# distributed with this work for additional information
 +# regarding copyright ownership.  The ASF licenses this file
 +# to you under the Apache License, Version 2.0 (the
 +# "License"); you may not use this file except in compliance
 +# with the License.  You may obtain a copy of the License at
 +#
 +# http://www.apache.org/licenses/LICENSE-2.0
 +#
 +# Unless required by applicable law or agreed to in writing,
 +# software distributed under the License is distributed on an
 +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +# KIND, either express or implied.  See the License for the
 +# specific language governing permissions and limitations
 +# under the License.
 +
 +@StepClassBranch @StepRepeat
 +Feature: Step - repeat()
 +
 +  Scenario: g_V_repeatXoutX_timesX2X_emit_path
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.out()).times(2).emit().path()
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | p[v[marko],v[lop]] |
 +      | p[v[marko],v[vadas]] |
 +      | p[v[marko],v[josh]] |
 +      | p[v[marko],v[josh],v[ripple]] |
 +      | p[v[marko],v[josh],v[lop]] |
 +      | p[v[josh],v[ripple]] |
 +      | p[v[josh],v[lop]] |
 +      | p[v[peter],v[lop]] |
 +
 +  Scenario: g_V_repeatXoutX_timesX2X_repeatXinX_timesX2X_name
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.out()).times(2).repeat(__.in()).times(2).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | marko |
 +      | marko |
 +
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_V_repeatXoutE_inVX_timesX2X_path_by_name_by_label
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.outE().inV()).times(2).path().by("name").by(T.label);
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | p[marko,knows,josh,created,lop] |
 +      | p[marko,knows,josh,created,ripple] |
 +
 +  Scenario: g_V_repeatXoutX_timesX2X
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.out()).times(2) 
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | v[ripple] |
 +      | v[lop] |
 +
 +  Scenario: g_V_repeatXoutX_timesX2X_emit
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.out()).times(2).emit()
 +      """
 +    When iterated to list
 +    Then the result should be of
 +      | result |
 +      | v[ripple] |
 +      | v[lop] |
 +      | v[josh] |
 +      | v[vadas] |
 +    And the result should have a count of 8
 +
 +  Scenario: g_VX1X_timesX2X_repeatXoutX_name
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).times(2).repeat(__.out()).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | ripple |
 +      | lop |
 +
 +  Scenario: g_V_emit_timesX2X_repeatXoutX_path
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().emit().times(2).repeat(__.out()).path()
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | p[v[marko]] |
 +      | p[v[marko],v[lop]] |
 +      | p[v[marko],v[vadas]] |
 +      | p[v[marko],v[josh]] |
 +      | p[v[marko],v[josh],v[ripple]] |
 +      | p[v[marko],v[josh],v[lop]] |
 +      | p[v[vadas]] |
 +      | p[v[lop]] |
 +      | p[v[josh]] |
 +      | p[v[josh],v[ripple]] |
 +      | p[v[josh],v[lop]] |
 +      | p[v[ripple]] |
 +      | p[v[peter]] |
 +      | p[v[peter],v[lop]] |
 +
 +  Scenario: g_V_emit_repeatXoutX_timesX2X_path
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().emit().repeat(__.out()).times(2).path()
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | p[v[marko]] |
 +      | p[v[marko],v[lop]] |
 +      | p[v[marko],v[vadas]] |
 +      | p[v[marko],v[josh]] |
 +      | p[v[marko],v[josh],v[ripple]] |
 +      | p[v[marko],v[josh],v[lop]] |
 +      | p[v[vadas]] |
 +      | p[v[lop]] |
 +      | p[v[josh]] |
 +      | p[v[josh],v[ripple]] |
 +      | p[v[josh],v[lop]] |
 +      | p[v[ripple]] |
 +      | p[v[peter]] |
 +      | p[v[peter],v[lop]] |
 +
 +  Scenario: g_VX1X_emitXhasXlabel_personXX_repeatXoutX_name
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).emit(__.has(T.label, "person")).repeat(__.out()).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | marko |
 +      | vadas |
 +      | josh  |
 +
 +  Scenario: g_V_repeatXgroupCountXmX_byXnameX_outX_timesX2X_capXmX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.groupCount("m").by("name").out()).times(2).cap("m")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | m[{"ripple":"d[2].l","peter":"d[1].l","vadas":"d[2].l","josh":"d[2].l","lop":"d[4].l","marko":"d[1].l"}] |
 +
 +  Scenario: g_VX1X_repeatXgroupCountXmX_byXloopsX_outX_timesX3X_capXmX
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).repeat(__.groupCount("m").by(__.loops()).out()).times(3).cap("m")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | m[{"d[0].i":"d[1].l","d[1].i":"d[3].l","d[2].i":"d[2].l"}] |
 +
 +  Scenario: g_V_repeatXbothX_timesX10X_asXaX_out_asXbX_selectXa_bX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.both()).times(10).as("a").out().as("b").select("a", "b").count()
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | d[43958].l |
 +
 +  Scenario: g_VX1X_repeatXoutX_untilXoutE_count_isX0XX_name
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).repeat(__.out()).until(__.outE().count().is(0)).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | lop |
 +      | vadas |
 +      | ripple  |
 +      | lop  |
 +
 +  Scenario: g_V_repeatXbothX_untilXname_eq_marko_or_loops_gt_1X_groupCount_byXnameX
 +    Given the modern graph
 +    And using the parameter pred1 defined as "c[t -> t.get().value('name').equals('lop') || t.loops() > 1]"
 +    And the traversal of
 +      """
 +      g.V().repeat(__.both()).until(pred1).groupCount().by("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | m[{"ripple":"d[3].l","vadas":"d[3].l","josh":"d[4].l","lop":"d[10].l","marko":"d[4].l"}] |
 +
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_V_hasXname_markoX_repeatXoutE_inV_simplePathX_untilXhasXname_rippleXX_path_byXnameX_byXlabelX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().has("name", "marko").repeat(__.outE().inV().simplePath()).until(__.has("name", "ripple")).path().by("name").by(T.label)
 +      """
 +    When iterated next
 +    Then the result should be unordered
 +      | result |
 +      | marko |
 +      | knows |
 +      | josh  |
 +      | created |
 +      | ripple  |
 +
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_V_hasXloop_name_loopX_repeatXinX_timesX5X_path_by_name
 +    Given the sink graph
 +    And the traversal of
 +      """
 +      g.V().has("loops","name","loop").repeat(__.in()).times(5).path().by("name")
 +      """
 +    When iterated next
 +    Then the result should be unordered
 +      | result |
 +      | loop |
 +      | loop |
 +      | loop  |
 +      | loop |
 +      | loop  |
 +      | loop  |
 +
 +  @GraphComputerVerificationReferenceOnly
-   Scenario: g_V_repeatXout_repeatXoutX_timesX1XX_timesX1X_limitX1X_path_by_name
++  Scenario: g_V_repeatXout_repeatXout_order_byXname_descXX_timesX1XX_timesX1X_limitX1X_path_byXnameX
 +      Given the modern graph
 +      And the traversal of
-         """
-         g.V().repeat(__.out().repeat(__.out()).times(1)).times(1).limit(1).path().by("name")
-         """
++          """
++          g.V().repeat(__.out().repeat(__.out().order().by("name",desc)).times(1)).times(1).limit(1).path().by("name")
++          """
 +      When iterated next
 +      Then the result should be unordered
-         | result |
-         | marko |
-         | josh |
-         | ripple |
++          | result |
++          | marko |
++          | josh |
++          | ripple |
++
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_V_repeatXoutXknowsXX_untilXrepeatXoutXcreatedXX_emitXhasXname_lopXXX_path_byXnameX
-       Given the modern graph
-       And the traversal of
-         """
-         g.V().repeat(__.out("knows")).until(__.repeat(__.out("created")).emit(__.has("name", "lop"))).path().by("name")
-         """
-       When iterated next
-       Then the result should be unordered
-         | result |
-         | marko |
-         | josh |
++    Given the modern graph
++    And the traversal of
++      """
++      g.V().repeat(__.out("knows")).until(__.repeat(__.out("created")).emit(__.has("name", "lop"))).path().by("name")
++      """
++    When iterated next
++    Then the result should be unordered
++      | result |
++      | marko |
++      | josh |
 +
 +  Scenario: g_V_repeatXrepeatXout_createdXX_untilXhasXname_rippleXXXemit_lang
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat(__.repeat(__.out("created")).until(__.has("name", "ripple"))).emit().values("lang")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | java |
 +
 +  Scenario: g_V_untilXconstantXtrueXX_repeatXrepeatXout_createdXX_untilXhasXname_rippleXXXemit_lang
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().until(__.constant(true)).repeat(__.repeat(__.out("created")).until(__.has("name", "ripple"))).emit().values("lang")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | java |
 +      | java |
 +
 +  Scenario: g_V_emit_repeatXa_outXknows_filterXloops_isX0XX_lang
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().emit().repeat("a", __.out("knows").filter(__.loops("a").is(0))).values("lang")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | java |
 +      | java |
 +
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_VX3X_repeatXbothX_createdXX_untilXloops_is_40XXemit_repeatXin_knowsXX_emit_loopsXisX1Xdedup_values
 +      Given the modern graph
 +      And using the parameter vid3 defined as "v[lop].id"
 +      And the traversal of
 +        """
 +        g.V(vid3).repeat(__.both("created")).until(__.loops().is(40)).emit(__.repeat(__.in("knows")).emit(__.loops().is(1))).dedup().values("name")
 +        """
 +      When iterated to list
 +        Then the result should be unordered
 +          | result |
 +          | josh |
 +          | lop |
 +          | ripple |
 +
 +  @MultiMetaProperties
 +  Scenario: g_VX1X_repeatXrepeatXunionXout_uses_out_traversesXX_whereXloops_isX0X_timesX1X_timeX2X_name
 +      Given the crew graph
 +      And using the parameter vid1 defined as "v[marko].id"
 +      And the traversal of
 +        """
 +        g.V(vid1).repeat(__.repeat(__.union(__.out("uses"), __.out("traverses")).where(__.loops().is(0))).times(1)).times(2).values("name")
 +        """
 +      When iterated to list
 +        Then the result should be unordered
 +          | result |
 +          | tinkergraph |
 +
 +  Scenario: g_V_repeatXa_outXknows_repeatXb_outXcreatedX_filterXloops_isX0XX_emit_lang
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().repeat("a", __.out("knows").repeat("b", __.out("created").filter(__.loops("a").is(0))).emit()).emit().values("lang")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | java |
 +      | java |
 +
 +  @GraphComputerVerificationReferenceOnly
 +  Scenario: g_VX6X_repeatXa_bothXcreatedX_simplePathX_emitXrepeatXb_bothXknowsXX_untilXloopsXbX_asXb_whereXloopsXaX_asXbX_hasXname_vadasXX_dedup_name
 +    Given the modern graph
 +    And using the parameter vid6 defined as "v[peter].id"
 +    And the traversal of
 +      """
 +      g.V(vid6).repeat("a", __.both("created").simplePath()).emit(__.repeat("b", __.both("knows")).until(__.loops("b").as("b").where(__.loops("a").as("b"))).has("name", "vadas")).dedup().values("name")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | josh |
diff --cc gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Order.feature
index 84b4d61a5f,0000000000..02d1dbfe45
mode 100644,000000..100644
--- a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Order.feature
+++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Order.feature
@@@ -1,602 -1,0 +1,602 @@@
 +# Licensed to the Apache Software Foundation (ASF) under one
 +# or more contributor license agreements.  See the NOTICE file
 +# distributed with this work for additional information
 +# regarding copyright ownership.  The ASF licenses this file
 +# to you under the Apache License, Version 2.0 (the
 +# "License"); you may not use this file except in compliance
 +# with the License.  You may obtain a copy of the License at
 +#
 +# http://www.apache.org/licenses/LICENSE-2.0
 +#
 +# Unless required by applicable law or agreed to in writing,
 +# software distributed under the License is distributed on an
 +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +# KIND, either express or implied.  See the License for the
 +# specific language governing permissions and limitations
 +# under the License.
 +
 +@StepClassMap @StepOrder
 +Feature: Step - order()
 +
 +  Scenario: g_V_name_order
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().values("name").order()
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | josh |
 +      | lop  |
 +      | marko |
 +      | peter |
 +      | ripple |
 +      | vadas  |
 +
 +  Scenario: g_V_name_order_byXa1_b1X_byXb2_a2X
 +    Given the modern graph
 +    And using the parameter c1 defined as "c[a, b -> a.substring(1, 2).compareTo(b.substring(1, 2))]"
 +    And using the parameter c2 defined as "c[a, b -> b.substring(2, 3).compareTo(a.substring(2, 3))]"
 +    And the traversal of
 +      """
 +      g.V().values("name").order().by(c1).by(c2)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | marko  |
 +      | vadas  |
 +      | peter  |
 +      | ripple |
 +      | josh   |
 +      | lop    |
 +
 +  Scenario: g_V_order_byXname_ascX_name
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().order().by("name", Order.asc).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | josh |
 +      | lop  |
 +      | marko |
 +      | peter |
 +      | ripple |
 +      | vadas  |
 +
 +  Scenario: g_V_order_byXnameX_name
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().order().by("name").values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | josh |
 +      | lop  |
 +      | marko |
 +      | peter |
 +      | ripple |
 +      | vadas  |
 +
 +  Scenario: g_V_outE_order_byXweight_descX_weight
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().outE().order().by("weight", Order.desc).values("weight")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | d[1.0].d |
 +      | d[1.0].d |
 +      | d[0.5].d |
 +      | d[0.4].d |
 +      | d[0.4].d |
 +      | d[0.2].d |
 +
 +  Scenario: g_V_order_byXname_a1_b1X_byXname_b2_a2X_name
 +    Given the modern graph
 +    And using the parameter c1 defined as "c[a, b -> a.substring(1, 2).compareTo(b.substring(1, 2))]"
 +    And using the parameter c2 defined as "c[a, b -> b.substring(2, 3).compareTo(a.substring(2, 3))]"
 +    And the traversal of
 +      """
 +      g.V().order().by("name", c1).by("name", c2).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | marko  |
 +      | vadas  |
 +      | peter  |
 +      | ripple |
 +      | josh   |
 +      | lop    |
 +
 +  Scenario: g_V_asXaX_outXcreatedX_asXbX_order_byXshuffleX_selectXa_bX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().as("a").out("created").as("b").order().by(Order.shuffle).select("a", "b")
 +      """
 +    When iterated to list
 +    Then the result should be unordered
 +      | result |
 +      | m[{"a":"v[marko]","b":"v[lop]"}] |
 +      | m[{"a":"v[peter]","b":"v[lop]"}] |
 +      | m[{"a":"v[josh]","b":"v[ripple]"}] |
 +      | m[{"a":"v[josh]","b":"v[lop]"}] |
 +
 +  Scenario: g_V_both_hasLabelXpersonX_order_byXage_descX_limitX5X_name
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().both().hasLabel("person").order().by("age", Order.desc).limit(5).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | peter  |
 +      | josh  |
 +      | josh  |
 +      | josh |
 +      | marko  |
 +
 +  Scenario: g_V_properties_order_byXkey_descX_key
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().properties().order().by(T.key, Order.desc).key()
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | name   |
 +      | name   |
 +      | name   |
 +      | name   |
 +      | name   |
 +      | name   |
 +      | lang   |
 +      | lang   |
 +      | age    |
 +      | age    |
 +      | age    |
 +      | age    |
 +
 +  Scenario: g_V_hasLabelXpersonX_order_byXvalueXageX_descX_name
 +    Given the modern graph
 +    And using the parameter l1 defined as "c[it.value('age')]"
 +    And the traversal of
 +      """
 +      g.V().hasLabel("person").order().by(l1, Order.desc).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | peter  |
 +      | josh   |
 +      | marko  |
 +      | vadas  |
 +
 +  Scenario: g_V_hasLabelXpersonX_group_byXnameX_byXoutE_weight_sumX_orderXlocalX_byXvaluesX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().hasLabel("person").group().by("name").by(__.outE().values("weight").sum()).order(Scope.local).by(Column.values)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"peter":"d[0.2].d","josh":"d[1.4].d","marko":"d[1.9].d"}] |
 +
 +  Scenario: g_V_mapXbothE_weight_foldX_order_byXsumXlocalX_descX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().map(__.bothE().values("weight").order().by(Order.asc).fold()).order().by(__.sum(Scope.local), Order.desc)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | l[d[0.4].d,d[1.0].d,d[1.0].d] |
 +      | l[d[0.4].d,d[0.5].d,d[1.0].d] |
 +      | l[d[0.2].d,d[0.4].d,d[0.4].d] |
 +      | l[d[1.0].d]                   |
 +      | l[d[0.5].d]                   |
 +      | l[d[0.2].d]                   |
 +
 +  Scenario: g_V_group_byXlabelX_byXname_order_byXdescX_foldX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().group().by(T.label).by(__.values("name").order().by(Order.desc).fold())
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"software":"l[ripple,lop]","person":"l[vadas,peter,marko,josh]"}]  |
 +
 +  Scenario: g_V_hasLabelXpersonX_group_byXnameX_byXoutE_weight_sumX_unfold_order_byXvalues_descX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().hasLabel("person").group().by("name").by(__.outE().values("weight").sum()).unfold().order().by(Column.values, Order.desc)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"marko":"d[1.9].d"}]  |
 +      | m[{"josh":"d[1.4].d"}]  |
 +      | m[{"peter":"d[0.2].d"}]  |
 +
 +  Scenario: g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().as("v").map(__.bothE().values("weight").fold()).sum(Scope.local).as("s").select("v", "s").order().by(__.select("s"), Order.desc)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"v":"v[josh]","s":"d[2.4].d"}]  |
 +      | m[{"v":"v[marko]","s":"d[1.9].d"}]  |
 +      | m[{"v":"v[lop]","s":"d[1.0].d"}]  |
 +      | m[{"v":"v[ripple]","s":"d[1.0].d"}]  |
 +      | m[{"v":"v[vadas]","s":"d[0.5].d"}]  |
 +      | m[{"v":"v[peter]","s":"d[0.2].d"}]  |
 +
 +  Scenario: g_V_hasLabelXpersonX_fold_orderXlocalX_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().hasLabel("person").fold().order(Scope.local).by("age")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | l[v[vadas],v[marko],v[josh],v[peter]] |
 +
 +  Scenario: g_V_both_hasLabelXpersonX_order_byXage_descX_name
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().both().hasLabel("person").order().by("age", Order.desc).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | peter  |
 +      | josh   |
 +      | josh   |
 +      | josh   |
 +      | marko  |
 +      | marko  |
 +      | marko  |
 +      | vadas  |
 +
-   Scenario: g_V_order_byXoutE_count_descX
++  Scenario: g_V_order_byXoutE_count_descX_byXnameX
 +    Given the modern graph
 +    And the traversal of
 +      """
-       g.V().order().by(__.outE().count(), Order.desc)
++      g.V().order().by(__.outE().count(), Order.desc).by("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
-       | v[vadas] |
 +      | v[lop] |
 +      | v[ripple] |
++      | v[vadas] |
 +
 +  Scenario: g_V_hasLabelXpersonX_order_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().hasLabel("person").order().by("age")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[vadas] |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
 +
 +  Scenario: g_V_order_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().order().by("age")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[vadas] |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
 +
 +  Scenario: g_V_fold_orderXlocalX_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().fold().order(local).by("age")
 +      """
 +    When iterated next
 +    Then the result should be ordered
 +      | result |
 +      | v[vadas] |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
 +
 +
 +  Scenario: g_V_fold_orderXlocalX_byXage_descX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().fold().order(local).by("age", desc)
 +      """
 +    When iterated next
 +    Then the result should be ordered
 +      | result |
 +      | v[peter] |
 +      | v[josh] |
 +      | v[marko] |
 +      | v[vadas] |
 +
 +  Scenario: g_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.V().or(hasLabel("person"),has("software","name","lop")).order().by("age")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[vadas] |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
 +
 +  # tests order().by() where a property isn't present to ensure null comes first
 +  @WithProductiveByStrategy
 +  Scenario: g_withStrategiesXProductiveByStrategyX_V_orXhasLabelXpersonX_hasXsoftware_name_lopXX_order_byXageX
 +    Given the modern graph
 +    And the traversal of
 +      """
 +      g.withStrategies(ProductiveByStrategy).V().or(hasLabel("person"),has("software","name","lop")).order().by("age")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[lop] |
 +      | v[vadas] |
 +      | v[marko] |
 +      | v[josh]   |
 +      | v[peter] |
 +
 +  Scenario: g_VX1X_hasXlabel_personX_mapXmapXint_ageXX_orderXlocalX_byXvalues_descX_byXkeys_ascX
 +    Given the modern graph
 +    And using the parameter v1 defined as "v[marko]"
 +    And using the parameter l1 defined as "c[['1':it.get().value('age'),'2':it.get().value('age')*2,'3':it.get().value('age')*3,'4':it.get().value('age')]]"
 +    And the traversal of
 +      """
 +      g.V(v1).hasLabel("person").map(l1).order(Scope.local).by(Column.values, Order.desc).by(Column.keys, Order.asc)
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"3":"d[87].i","2":"d[58].i","1":"d[29].i","4":"d[29].i"}] |
 +
 +  Scenario: g_V_hasXsong_name_OHBOYX_outXfollowedByX_outXfollowedByX_order_byXperformancesX_byXsongType_descX
 +    Given the grateful graph
 +    And the traversal of
 +      """
 +      g.V().has("song", "name", "OH BOY").out("followedBy").out("followedBy").order().by("performances").by("songType", desc).by("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | v[BARBRY ALLEN] |
 +      | v[CHANTING BY THE GYOTO MONKS] |
 +      | v[FUNICULI FUNICULA] |
 +      | v[GIMME SOME LOVIN] |
 +      | v[GOOD TIME BLUES] |
 +      | v[LUCY IN THE SKY] |
 +      | v[MAYBE YOU KNOW HOW I FEEL] |
 +      | v[MOJO] |
 +      | v[OLLIN ARRAGEED] |
 +      | v[QUINN THE ESKIMO] |
 +      | v[SATISFACTION] |
 +      | v[SILENT WAY JAM] |
 +      | v[SPACE] |
 +      | v[STRONGER THAN DIRT] |
 +      | v[THE BOXER] |
 +      | v[THIS COULD BE THE LAST TIME] |
 +      | v[TOM THUMB BLUES] |
 +      | v[CHINESE BONES] |
 +      | v[LOVE THE ONE YOURE WITH] |
 +      | v[BLACK QUEEN] |
 +      | v[OH BOY] |
 +      | v[BLUES FOR ALLAH] |
 +      | v[IF I HAD THE WORLD TO GIVE] |
 +      | v[HEY JUDE] |
 +      | v[ITS ALL TOO MUCH] |
 +      | v[WILLIE AND THE HAND JIVE] |
 +      | v[WHY DONT WE DO IT IN THE ROAD] |
 +      | v[UNBROKEN CHAIN] |
 +      | v[DONT NEED LOVE] |
 +      | v[NOBODYS FAULT BUT MINE] |
 +      | v[HEAVEN HELP THE FOOL] |
 +      | v[BLOW AWAY] |
 +      | v[JAM] |
 +      | v[SUNSHINE DAYDREAM] |
 +      | v[I WILL TAKE YOU HOME] |
 +      | v[SAMBA IN THE RAIN] |
 +      | v[ON THE ROAD AGAIN] |
 +      | v[SPANISH JAM] |
 +      | v[EASY TO LOVE YOU] |
 +      | v[DEATH DONT HAVE NO MERCY] |
 +      | v[SPOONFUL] |
 +      | v[CAUTION] |
 +      | v[THE RACE IS ON] |
 +      | v[SMOKESTACK LIGHTNING] |
 +      | v[COMES A TIME] |
 +      | v[STANDING ON THE MOON] |
 +      | v[KNOCKING ON HEAVENS DOOR] |
 +      | v[PICASSO MOON] |
 +      | v[FOOLISH HEART] |
 +      | v[WAY TO GO HOME] |
 +      | v[THE ELEVEN] |
 +      | v[VICTIM OR THE CRIME] |
 +      | v[PASSENGER] |
 +      | v[PASSENGER] |
 +      | v[MY BROTHER ESAU] |
 +      | v[HELP ON THE WAY] |
 +      | v[LAZY LIGHTNING] |
 +      | v[CHINA DOLL] |
 +      | v[ME AND BOBBY MCGEE] |
 +      | v[ALL ALONG THE WATCHTOWER] |
 +      | v[CRYPTICAL ENVELOPMENT] |
 +      | v[ALABAMA GETAWAY] |
 +      | v[CRAZY FINGERS] |
 +      | v[CRAZY FINGERS] |
 +      | v[WHEN I PAINT MY MASTERPIECE] |
 +      | v[LOST SAILOR] |
 +      | v[LOST SAILOR] |
 +      | v[BLACK THROATED WIND] |
 +      | v[IT MUST HAVE BEEN THE ROSES] |
 +      | v[IT MUST HAVE BEEN THE ROSES] |
 +      | v[BOX OF RAIN] |
 +      | v[SHAKEDOWN STREET] |
 +      | v[SHAKEDOWN STREET] |
 +      | v[IKO IKO] |
 +      | v[IKO IKO] |
 +      | v[FEEL LIKE A STRANGER] |
 +      | v[TOUCH OF GREY] |
 +      | v[TOUCH OF GREY] |
 +      | v[BROKEDOWN PALACE] |
 +      | v[HELL IN A BUCKET] |
 +      | v[DARK STAR] |
 +      | v[DARK STAR] |
 +      | v[FRANKLINS TOWER] |
 +      | v[SAINT OF CIRCUMSTANCE] |
 +      | v[SAINT OF CIRCUMSTANCE] |
 +      | v[THE MUSIC NEVER STOPPED] |
 +      | v[COLD RAIN AND SNOW] |
 +      | v[FIRE ON THE MOUNTAIN] |
 +      | v[MORNING DEW] |
 +      | v[THE WHEEL] |
 +      | v[THROWING STONES] |
 +      | v[I NEED A MIRACLE] |
 +      | v[I NEED A MIRACLE] |
 +      | v[ALTHEA] |
 +      | v[LITTLE RED ROOSTER] |
 +      | v[LET IT GROW] |
 +      | v[LET IT GROW] |
 +      | v[GOING DOWN THE ROAD FEELING BAD] |
 +      | v[BIRDSONG] |
 +      | v[TERRAPIN STATION] |
 +      | v[TERRAPIN STATION] |
 +      | v[MAMA TRIED] |
 +      | v[FRIEND OF THE DEVIL] |
 +      | v[FRIEND OF THE DEVIL] |
 +      | v[SCARLET BEGONIAS] |
 +      | v[SCARLET BEGONIAS] |
 +      | v[BEAT IT ON DOWN THE LINE] |
 +      | v[HES GONE] |
 +      | v[STELLA BLUE] |
 +      | v[UNCLE JOHNS BAND] |
 +      | v[UNCLE JOHNS BAND] |
 +      | v[CASSIDY] |
 +      | v[ONE MORE SATURDAY NIGHT] |
 +      | v[BLACK PETER] |
 +      | v[BROWN EYED WOMEN] |
 +      | v[SUGAREE] |
 +      | v[SAMSON AND DELILAH] |
 +      | v[SAMSON AND DELILAH] |
 +      | v[EYES OF THE WORLD] |
 +      | v[EYES OF THE WORLD] |
 +      | v[EL PASO] |
 +      | v[ESTIMATED PROPHET] |
 +      | v[BERTHA] |
 +      | v[WHARF RAT] |
 +      | v[BIG RIVER] |
 +      | v[LOOKS LIKE RAIN] |
 +      | v[AROUND AND AROUND] |
 +      | v[PROMISED LAND] |
 +      | v[GOOD LOVING] |
 +      | v[MEXICALI BLUES] |
 +      | v[NEW MINGLEWOOD BLUES] |
 +      | v[JACK STRAW] |
 +      | v[JACK STRAW] |
 +      | v[TRUCKING] |
 +      | v[TRUCKING] |
 +      | v[NOT FADE AWAY] |
 +      | v[CHINA CAT SUNFLOWER] |
 +      | v[CHINA CAT SUNFLOWER] |
 +      | v[PLAYING IN THE BAND] |
 +      | v[PLAYING IN THE BAND] |
 +      | v[THE OTHER ONE] |
 +      | v[SUGAR MAGNOLIA] |
 +      | v[SUGAR MAGNOLIA] |
 +      | v[ME AND MY UNCLE] |
 +
 +  Scenario: g_V_hasLabelXsongX_order_byXperformances_descX_byXnameX_rangeX110_120X_name
 +    Given the grateful graph
 +    And the traversal of
 +      """
 +      g.V().hasLabel("song").order().by("performances", desc).by("name").range(110, 120).values("name")
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | WANG DANG DOODLE |
 +      | THE ELEVEN |
 +      | WAY TO GO HOME |
 +      | FOOLISH HEART |
 +      | GIMME SOME LOVING |
 +      | DUPREES DIAMOND BLUES |
 +      | CORRINA |
 +      | PICASSO MOON |
 +      | KNOCKING ON HEAVENS DOOR |
 +      | MEMPHIS BLUES |
 +
 +  Scenario: g_VX1X_elementMap_orderXlocalX_byXkeys_descXunfold
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).elementMap().order(Scope.local).by(Column.keys, Order.desc).unfold()
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"name":"marko"}] |
 +      | m[{"t[label]":"person"}] |
 +      | m[{"t[id]":"v[marko].id"}] |
 +      | m[{"age":29}] |
 +
 +  Scenario: g_VX1X_elementMap_orderXlocalX_byXkeys_ascXunfold
 +    Given the modern graph
 +    And using the parameter vid1 defined as "v[marko].id"
 +    And the traversal of
 +      """
 +      g.V(vid1).elementMap().order(Scope.local).by(Column.keys, Order.asc).unfold()
 +      """
 +    When iterated to list
 +    Then the result should be ordered
 +      | result |
 +      | m[{"age":29}] |
 +      | m[{"t[id]":"v[marko].id"}] |
 +      | m[{"t[label]":"person"}] |
 +      | m[{"name":"marko"}] |
diff --cc spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
index 9fb7169b9d,0000000000..e437c7340b
mode 100644,000000..100644
--- a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
+++ b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
@@@ -1,190 -1,0 +1,190 @@@
 +/*
 + * Licensed to the Apache Software Foundation (ASF) under one
 + * or more contributor license agreements.  See the NOTICE file
 + * distributed with this work for additional information
 + * regarding copyright ownership.  The ASF licenses this file
 + * to you under the Apache License, Version 2.0 (the
 + * "License"); you may not use this file except in compliance
 + * with the License.  You may obtain a copy of the License at
 + *
 + * http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing,
 + * software distributed under the License is distributed on an
 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 + * KIND, either express or implied.  See the License for the
 + * specific language governing permissions and limitations
 + * under the License.
 + */
 +package org.apache.tinkerpop.gremlin.spark;
 +
 +import com.google.inject.AbstractModule;
 +import com.google.inject.Guice;
 +import com.google.inject.Injector;
 +import com.google.inject.Stage;
 +import io.cucumber.guice.CucumberModules;
 +import io.cucumber.guice.GuiceFactory;
 +import io.cucumber.guice.InjectorSource;
 +import io.cucumber.java.Scenario;
 +import io.cucumber.junit.Cucumber;
 +import io.cucumber.junit.CucumberOptions;
 +import org.apache.commons.configuration2.MapConfiguration;
 +import org.apache.spark.launcher.SparkLauncher;
 +import org.apache.spark.serializer.KryoSerializer;
 +import org.apache.tinkerpop.gremlin.TestHelper;
 +import org.apache.tinkerpop.gremlin.features.TestFiles;
 +import org.apache.tinkerpop.gremlin.features.World;
 +import org.apache.tinkerpop.gremlin.hadoop.Constants;
 +import org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph;
 +import org.apache.tinkerpop.gremlin.hadoop.structure.io.gryo.GryoInputFormat;
 +import org.apache.tinkerpop.gremlin.hadoop.structure.io.gryo.GryoOutputFormat;
 +import org.apache.tinkerpop.gremlin.process.computer.Computer;
 +import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
 +import org.apache.tinkerpop.gremlin.spark.process.computer.SparkGraphComputer;
 +import org.apache.tinkerpop.gremlin.spark.structure.io.gryo.GryoRegistrator;
 +import org.apache.tinkerpop.gremlin.structure.Graph;
 +import org.javatuples.Pair;
 +import org.junit.AssumptionViolatedException;
 +import org.junit.runner.RunWith;
 +
 +import java.util.ArrayList;
 +import java.util.Arrays;
 +import java.util.HashMap;
 +import java.util.List;
 +import java.util.Map;
 +import java.util.Optional;
 +import java.util.stream.Collectors;
 +
 +import static org.apache.tinkerpop.gremlin.LoadGraphWith.GraphData;
 +
 +@RunWith(Cucumber.class)
 +@CucumberOptions(
 +        tags = "not @RemoteOnly and not @StepDrop and not @StepV and not @StepIndex and not @StepInject and " +
 +               "not @GraphComputerVerificationOneBulk and not @GraphComputerVerificationStrategyNotSupported and " +
 +               "not @GraphComputerVerificationMidVNotSupported and not @GraphComputerVerificationElementSupported and " +
 +               "not @GraphComputerVerificationInjectionNotSupported and " +
 +               "not @GraphComputerVerificationStarGraphExceeded and not @GraphComputerVerificationReferenceOnly and " +
 +               "not @TinkerServiceRegistry",
 +        glue = { "org.apache.tinkerpop.gremlin.features" },
 +        objectFactory = GuiceFactory.class,
 +        features = { "classpath:/org/apache/tinkerpop/gremlin/test/features" },
 +        plugin = {"progress", "junit:target/cucumber.xml"})
 +public class SparkGraphFeatureIntegrateTest {
 +    private static final int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();
 +
 +    private static final String skipReasonLength = "Spark-Gremlin is OLAP-oriented and for OLTP operations, linear-scan joins are required. This particular tests takes many minutes to execute.";
 +
 +    /**
 +     * May need to improve the definition of result equality with map&lt;list&gt; - TINKERPOP-2622
 +     */
 +    private static final String skipReasonOrdering = "There are some internal ordering issues with result where equality is not required but is being enforced";
 +
 +    private static final List<Pair<String, String>> skip = new ArrayList<Pair<String,String>>() {{
 +        add(Pair.with("g_V_both_both_count", skipReasonLength));
 +        add(Pair.with("g_V_repeatXoutX_timesX3X_count", skipReasonLength));
 +        add(Pair.with("g_V_repeatXoutX_timesX8X_count", skipReasonLength));
 +        add(Pair.with("g_V_repeatXoutX_timesX5X_asXaX_outXwrittenByX_asXbX_selectXa_bX_count", skipReasonLength));
 +        add(Pair.with("g_V_matchXa_0sungBy_b__a_0writtenBy_c__b_writtenBy_dX_whereXc_sungBy_dX_whereXd_hasXname_GarciaXX", skipReasonLength));
 +        add(Pair.with("g_V_matchXa_0sungBy_b__a_0writtenBy_c__b_writtenBy_d__c_sungBy_d__d_hasXname_GarciaXX", skipReasonLength));
 +        add(Pair.with("g_V_matchXa_0sungBy_b__a_0sungBy_c__b_writtenBy_d__c_writtenBy_e__d_hasXname_George_HarisonX__e_hasXname_Bob_MarleyXX", skipReasonLength));
 +        add(Pair.with("g_V_matchXa_hasXname_GarciaX__a_0writtenBy_b__a_0sungBy_bX", skipReasonLength));
 +        add(Pair.with("g_V_hasLabelXsongX_groupXaX_byXnameX_byXproperties_groupCount_byXlabelXX_out_capXaX", skipReasonLength));
 +        add(Pair.with("g_V_outXfollowedByX_group_byXsongTypeX_byXbothE_group_byXlabelX_byXweight_sumXX", skipReasonLength));
 +        add(Pair.with("g_V_repeatXbothXfollowedByXX_timesX2X_group_byXsongTypeX_byXcountX", skipReasonLength));
 +        add(Pair.with("g_V_repeatXbothXfollowedByXX_timesX2X_groupXaX_byXsongTypeX_byXcountX_capXaX", skipReasonLength));
 +        add(Pair.with("g_V_matchXa_followedBy_count_isXgtX10XX_b__a_0followedBy_count_isXgtX10XX_bX_count", skipReasonLength));
 +        add(Pair.with("g_V_order_byXname_descX_barrier_dedup_age_name", skipReasonOrdering));
 +        add(Pair.with("g_V_group_byXoutE_countX_byXnameX", skipReasonOrdering));
 +        add(Pair.with("g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX", skipReasonOrdering));
 +        add(Pair.with("g_V_hasXlangX_groupXaX_byXlangX_byXnameX_out_capXaX", skipReasonOrdering));
 +        add(Pair.with("g_withStrategiesXProductiveByStrategyX_V_group_byXageX", skipReasonOrdering));
-         add(Pair.with("g_V_order_byXoutE_count_descX", skipReasonOrdering));
++        add(Pair.with("g_V_order_byXoutE_count_descX_byXnameX", skipReasonOrdering));
 +        add(Pair.with("g_V_both_both_dedup_byXoutE_countX_name", skipReasonOrdering));
 +        add(Pair.with("g_V_mapXbothE_weight_foldX_order_byXsumXlocalX_descX", skipReasonOrdering));
 +        add(Pair.with("g_V_hasLabelXsoftwareX_order_byXnameX_index_withXmapX", skipReasonOrdering));
 +    }};
 +
 +    public static final class ServiceModule extends AbstractModule {
 +        @Override
 +        protected void configure() {
 +            bind(World.class).to(SparkGraphWorld.class);
 +        }
 +    }
 +
 +    public static class SparkGraphWorld implements World {
 +
 +        private static final HadoopGraph modern = HadoopGraph.open(new MapConfiguration(getBaseConfiguration(GraphData.MODERN)));
 +        private static final HadoopGraph classic = HadoopGraph.open(new MapConfiguration(getBaseConfiguration(GraphData.CLASSIC)));
 +        private static final HadoopGraph crew = HadoopGraph.open(new MapConfiguration(getBaseConfiguration(GraphData.CREW)));
 +        private static final HadoopGraph sink = HadoopGraph.open(new MapConfiguration(getBaseConfiguration(GraphData.SINK)));
 +        private static final HadoopGraph grateful = HadoopGraph.open(new MapConfiguration(getBaseConfiguration(GraphData.GRATEFUL)));
 +
 +        static {
 +            readIntoGraph(modern, GraphData.MODERN);
 +            readIntoGraph(classic, GraphData.CLASSIC);
 +            readIntoGraph(crew, GraphData.CREW);
 +            readIntoGraph(sink, GraphData.SINK);
 +            readIntoGraph(grateful, GraphData.GRATEFUL);
 +        }
 +
 +        @Override
 +        public GraphTraversalSource getGraphTraversalSource(final GraphData graphData) {
 +            if (null == graphData)
 +                throw new AssumptionViolatedException("HadoopGraph does not support graph mutations");
 +            else if (graphData == GraphData.CLASSIC)
 +                return classic.traversal().withComputer(Computer.compute(SparkGraphComputer.class).workers(AVAILABLE_PROCESSORS));
 +            else if (graphData == GraphData.CREW)
 +                return crew.traversal().withComputer(Computer.compute(SparkGraphComputer.class).workers(AVAILABLE_PROCESSORS));
 +            else if (graphData == GraphData.MODERN)
 +                return modern.traversal().withComputer(Computer.compute(SparkGraphComputer.class).workers(AVAILABLE_PROCESSORS));
 +            else if (graphData == GraphData.SINK)
 +                return sink.traversal().withComputer(Computer.compute(SparkGraphComputer.class).workers(AVAILABLE_PROCESSORS));
 +            else if (graphData == GraphData.GRATEFUL)
 +                return grateful.traversal().withComputer(Computer.compute(SparkGraphComputer.class).workers(AVAILABLE_PROCESSORS));
 +            else
 +                throw new UnsupportedOperationException("GraphData not supported: " + graphData.name());
 +        }
 +
 +        @Override
 +        public void beforeEachScenario(final Scenario scenario) {
 +            final Optional<Pair<String,String>> skipped = skip.stream().
 +                    filter(s -> s.getValue0().equals(scenario.getName())).findFirst();
 +            if (skipped.isPresent())
 +                throw new AssumptionViolatedException(skipped.get().getValue1());
 +        }
 +
 +        private static void readIntoGraph(final Graph graph, final GraphData graphData) {
 +            ((HadoopGraph) graph).configuration().setInputLocation(TestFiles.getInputLocation(graphData, false));
 +        }
 +
 +        private static String getWorkingDirectory() {
 +            return TestHelper.makeTestDataDirectory(SparkGraphFeatureIntegrateTest.class, "graph-provider-data");
 +        }
 +
 +        private static Map<String, Object> getBaseConfiguration(final GraphData graphData) {
 +            return new HashMap<String, Object>() {{
 +                put(Graph.GRAPH, HadoopGraph.class.getName());
 +                put(Constants.GREMLIN_HADOOP_GRAPH_READER, GryoInputFormat.class.getCanonicalName());
 +                put(Constants.GREMLIN_HADOOP_GRAPH_WRITER, GryoOutputFormat.class.getCanonicalName());
 +                put(Constants.GREMLIN_HADOOP_OUTPUT_LOCATION, getWorkingDirectory());
 +                put(Constants.GREMLIN_HADOOP_JARS_IN_DISTRIBUTED_CACHE, false);
 +
 +                put(Constants.GREMLIN_SPARK_PERSIST_CONTEXT, true);  // this makes the test suite go really fast
 +
 +                put(Constants.GREMLIN_HADOOP_DEFAULT_GRAPH_COMPUTER, SparkGraphComputer.class.getCanonicalName());
 +                put(SparkLauncher.SPARK_MASTER, "local[" + AVAILABLE_PROCESSORS + "]");
 +                put(Constants.SPARK_SERIALIZER, KryoSerializer.class.getCanonicalName());
 +                put(Constants.SPARK_KRYO_REGISTRATOR, GryoRegistrator.class.getCanonicalName());
 +                put(Constants.SPARK_KRYO_REGISTRATION_REQUIRED, true);
 +            }};
 +        }
 +    }
 +
 +    public static final class WorldInjectorSource implements InjectorSource {
 +        @Override
 +        public Injector getInjector() {
 +            return Guice.createInjector(Stage.PRODUCTION, CucumberModules.createScenarioModule(), new ServiceModule());
 +        }
 +    }
 +
 +}
diff --cc tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
index 7a02c0ad36,0000000000..ab71c20c2c
mode 100644,000000..100644
--- a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
+++ b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
@@@ -1,164 -1,0 +1,164 @@@
 +/*
 + * Licensed to the Apache Software Foundation (ASF) under one
 + * or more contributor license agreements.  See the NOTICE file
 + * distributed with this work for additional information
 + * regarding copyright ownership.  The ASF licenses this file
 + * to you under the Apache License, Version 2.0 (the
 + * "License"); you may not use this file except in compliance
 + * with the License.  You may obtain a copy of the License at
 + *
 + * http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing,
 + * software distributed under the License is distributed on an
 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 + * KIND, either express or implied.  See the License for the
 + * specific language governing permissions and limitations
 + * under the License.
 + */
 +package org.apache.tinkerpop.gremlin.tinkergraph;
 +
 +import io.cucumber.java.Scenario;
 +import org.apache.commons.configuration2.BaseConfiguration;
 +import org.apache.commons.configuration2.Configuration;
 +import org.apache.commons.configuration2.MapConfiguration;
 +import org.apache.tinkerpop.gremlin.LoadGraphWith;
 +import org.apache.tinkerpop.gremlin.TestHelper;
 +import org.apache.tinkerpop.gremlin.features.World;
 +import org.apache.tinkerpop.gremlin.process.computer.GraphComputer;
 +import org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.VertexProgramStrategy;
 +import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
 +import org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerGraphComputer;
 +import org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerDegreeCentralityFactory;
 +import org.apache.tinkerpop.gremlin.tinkergraph.services.TinkerTextSearchFactory;
 +import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory;
 +import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;
 +import org.junit.AssumptionViolatedException;
 +
 +import java.io.File;
 +import java.util.Arrays;
 +import java.util.HashMap;
 +import java.util.List;
 +import java.util.Random;
 +import java.util.stream.Collectors;
 +
 +/**
 + * The {@link World} implementation for TinkerGraph that provides the {@link GraphTraversalSource} instances required
 + * by the Gherkin test suite.
 + */
 +public class TinkerGraphWorld implements World {
 +    private static final TinkerGraph modern = registerTestServices(TinkerFactory.createModern());
 +    private static final TinkerGraph classic = registerTestServices(TinkerFactory.createClassic());
 +    private static final TinkerGraph crew = registerTestServices(TinkerFactory.createTheCrew());
 +    private static final TinkerGraph sink = registerTestServices(TinkerFactory.createKitchenSink());
 +    private static final TinkerGraph grateful = registerTestServices(TinkerFactory.createGratefulDead());
 +
 +    private static TinkerGraph registerTestServices(final TinkerGraph graph) {
 +        graph.getServiceRegistry().registerService(new TinkerTextSearchFactory(graph));
 +        graph.getServiceRegistry().registerService(new TinkerDegreeCentralityFactory(graph));
 +        return graph;
 +    }
 +
 +    @Override
 +    public GraphTraversalSource getGraphTraversalSource(final LoadGraphWith.GraphData graphData) {
 +        if (null == graphData)
 +            return registerTestServices(TinkerGraph.open(getNumberIdManagerConfiguration())).traversal();
 +        else if (graphData == LoadGraphWith.GraphData.CLASSIC)
 +            return classic.traversal();
 +        else if (graphData == LoadGraphWith.GraphData.CREW)
 +            return crew.traversal();
 +        else if (graphData == LoadGraphWith.GraphData.MODERN)
 +            return modern.traversal();
 +        else if (graphData == LoadGraphWith.GraphData.SINK)
 +            return sink.traversal();
 +        else if (graphData == LoadGraphWith.GraphData.GRATEFUL)
 +            return grateful.traversal();
 +        else
 +            throw new UnsupportedOperationException("GraphData not supported: " + graphData.name());
 +    }
 +
 +    @Override
 +    public String changePathToDataFile(final String pathToFileFromGremlin) {
 +        return ".." + File.separator + pathToFileFromGremlin;
 +    }
 +
 +    private static Configuration getNumberIdManagerConfiguration() {
 +        final Configuration conf = new BaseConfiguration();
 +        conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_VERTEX_ID_MANAGER, TinkerGraph.DefaultIdManager.INTEGER.name());
 +        conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_EDGE_ID_MANAGER, TinkerGraph.DefaultIdManager.INTEGER.name());
 +        conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_VERTEX_PROPERTY_ID_MANAGER, TinkerGraph.DefaultIdManager.LONG.name());
 +        return conf;
 +    }
 +
 +    /**
 +     * Enables the storing of {@code null} property values when testing.
 +     */
 +    public static class NullWorld extends TinkerGraphWorld {
 +
 +        @Override
 +        public GraphTraversalSource getGraphTraversalSource(final LoadGraphWith.GraphData graphData) {
 +            if (graphData != null)
 +                throw new UnsupportedOperationException("GraphData not supported: " + graphData.name());
 +
 +            final Configuration conf = TinkerGraphWorld.getNumberIdManagerConfiguration();
 +            conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_ALLOW_NULL_PROPERTY_VALUES, true);
 +            return TinkerGraph.open(conf).traversal();
 +        }
 +    }
 +
 +    /**
 +     * Turns on {@link GraphComputer} when testing.
 +     */
 +    public static class ComputerWorld extends TinkerGraphWorld {
 +        private static final Random RANDOM = TestHelper.RANDOM;
 +
 +        private static final List<String> TAGS_TO_IGNORE = Arrays.asList(
 +                "@StepDrop",
 +                "@StepInject",
 +                "@StepV",
 +                "@GraphComputerVerificationOneBulk",
 +                "@GraphComputerVerificationStrategyNotSupported",
 +                "@GraphComputerVerificationMidVNotSupported",
 +                "@GraphComputerVerificationInjectionNotSupported",
 +                "@GraphComputerVerificationStarGraphExceeded",
 +                "@GraphComputerVerificationReferenceOnly",
 +                "@TinkerServiceRegistry");
 +
 +        private static final List<String> SCENARIOS_TO_IGNORE = Arrays.asList(
 +                "g_V_group_byXoutE_countX_byXnameX",
 +                "g_V_asXvX_mapXbothE_weight_foldX_sumXlocalX_asXsX_selectXv_sX_order_byXselectXsX_descX",
 +                "g_V_hasXlangX_groupXaX_byXlangX_byXnameX_out_capXaX",
 +                "g_withStrategiesXProductiveByStrategyX_V_group_byXageX",
-                 "g_V_order_byXoutE_count_descX",
++                "g_V_order_byXoutE_count_descX_byXnameX",
 +                "g_V_both_both_dedup_byXoutE_countX_name",
 +                "g_V_mapXbothE_weight_foldX_order_byXsumXlocalX_descX",
 +                "g_V_hasLabelXsoftwareX_order_byXnameX_index_withXmapX",
 +                "g_V_order_byXname_descX_barrier_dedup_age_name");
 +
 +        @Override
 +        public void beforeEachScenario(final Scenario scenario) {
 +            final List<String> ignores = TAGS_TO_IGNORE.stream().filter(t -> scenario.getSourceTagNames().contains(t)).collect(Collectors.toList());
 +            if (!ignores.isEmpty())
 +                throw new AssumptionViolatedException(String.format("This scenario is not supported with GraphComputer: %s", ignores));
 +
 +            // the following needs some further investigation.........may need to improve the definition of result
 +            // equality with map<list>
 +            final String scenarioName = scenario.getName();
 +            if (SCENARIOS_TO_IGNORE.contains(scenarioName))
 +                throw new AssumptionViolatedException("There are some internal ordering issues with result where equality is not required but is being enforced");
 +        }
 +
 +        @Override
 +        public GraphTraversalSource getGraphTraversalSource(final LoadGraphWith.GraphData graphData) {
 +            if (null == graphData)
 +                throw new AssumptionViolatedException("GraphComputer does not support mutation");
 +
 +            return super.getGraphTraversalSource(graphData).withStrategies(VertexProgramStrategy.create(new MapConfiguration(new HashMap<String, Object>() {{
 +                put(VertexProgramStrategy.WORKERS, Runtime.getRuntime().availableProcessors());
 +                put(VertexProgramStrategy.GRAPH_COMPUTER, RANDOM.nextBoolean() ?
 +                        GraphComputer.class.getCanonicalName() :
 +                        TinkerGraphComputer.class.getCanonicalName());
 +            }})));
 +        }
 +    }
 +}