aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-12 16:37:56 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-12 16:37:56 +0000
commit77c97b4b943c466ce4d832289d33e004567081f7 (patch)
treea4896130abe61574fd6cb164107fdd366ec3b6c1 /html
parent1f2842ef8906f1303e4cb616bdaea7ce2284bfae (diff)
downloadgit-deps-77c97b4b943c466ce4d832289d33e004567081f7.tar.gz
sort row_groups by x coordinate increasing
Diffstat (limited to 'html')
-rw-r--r--html/js/git-deps-layout.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/js/git-deps-layout.coffee b/html/js/git-deps-layout.coffee
index d5c85a9..3024e4d 100644
--- a/html/js/git-deps-layout.coffee
+++ b/html/js/git-deps-layout.coffee
@@ -51,6 +51,10 @@ dagre_row_groups = ->
row_groups[y].push
sha1: sha1
x: x
+
+ for y, nodes of row_groups
+ nodes.sort (n) -> -n.x
+
return row_groups
build_constraints = ->