Skip to content

Commit

Permalink
Merge pull request #31 from 5monkeys/feature/enable-sorting-nodes
Browse files Browse the repository at this point in the history
Enable sorting nodes by URI.
  • Loading branch information
lundberg committed Nov 7, 2017
2 parents f3e2b85 + ddf65c2 commit f4e9a8b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ coverage:
.PHONY: clean
clean:
rm -rf .tox/ dist/ *.egg *.egg-info .coverage

.PHONY: compile
compile:
coffee -cw .
4 changes: 2 additions & 2 deletions djedi/static/djedi/cms/js/cms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class Search

addNodes: (nodes) ->
nodes = (node for uri, node of nodes)
# nodes.sort (n1, n2) ->
# if n1.uri.path < n2.uri.path then -1 else 1
nodes.sort (n1, n2) ->
if n1.uri.path < n2.uri.path then -1 else 1

groups = {}

Expand Down
7 changes: 7 additions & 0 deletions djedi/static/djedi/cms/js/cms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4e9a8b

Please sign in to comment.