diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-01 23:14:40 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-02 00:35:01 +0300 |
| commit | 598f7a1a05bfc8195f35527e7ad94f387ac6f6a8 (patch) | |
| tree | 2ae3bf4f7da08c55beff2ea447c05ad537b53f81 /src | |
| parent | 68a89892a928168343861b4eabfa010ee8ca57b8 (diff) | |
client/layouts: concentric: sort inside ring by name
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/view/layouts.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/view/layouts.js b/src/client/view/layouts.js index 0956750e..ffbe1db9 100644 --- a/src/client/view/layouts.js +++ b/src/client/view/layouts.js @@ -111,7 +111,9 @@ function($, d3, _, rz_core) { small_cutoff = _.max(_.keys(small_number_angles)); return layout__sync(function () { - var bytype = _.sortBy(_.groupBy(this._nodes, 'type'), "length"), + var bytype = _.sortBy(_.groupBy(this._nodes, 'type'), "length").map(function (nodes) { + return _.sortBy(nodes, "name"); + }), types = _.keys(bytype), i, r, |
