Skip to content

Commit 2c6a499

Browse files
author
p01
committed
Sort the resources by ID in the tree ( avoids any jumping up and down because of asynch network events )
1 parent 035d254 commit 2c6a499

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/resource-manager/resource_templates.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ templates.resource_tree =
172172
var resources = resources_unfiltered.
173173
filter(function(r){
174174
return r.group == g;
175+
}).sort(function(a,b){
176+
return a.id-b.id;
175177
});
176178

177179
if (resources.length)

0 commit comments

Comments
 (0)