Skip to content

Commit be86699

Browse files
authored
Merge pull request #6 from MatthiasPetermann/master
Sort top level projects by their name
2 parents bd1f2ca + fbab1c3 commit be86699

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/project_tree/patches/projects_helper_patch.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def find_toplevel_projects
3333
#{Project.table_name} p
3434
where
3535
p.parent_id is null
36-
and p.status = 1")
36+
and p.status = 1
37+
order by p.name")
3738

3839
# load project as object and store it to the result
3940
result = []

0 commit comments

Comments
 (0)