public
Description: Vault
Homepage: http://peervoice.com/software/vault
Clone URL: git://github.com/ddollar/vault.git
fixed sort and double-child request
ddollar (author)
Sat Apr 12 21:28:45 -0700 2008
commit  244aded0b2649ed8c6e79b8d7d9b8aed165d2ef1
tree    e6b495db079328623f65001389fef7ef3458a990
parent  8c30cc57f5f1b4b60fb80f4254a5a6e21b037b71
...
22
23
24
25
 
26
27
28
29
 
 
 
30
31
32
...
22
23
24
 
25
26
 
 
 
27
28
29
30
31
32
0
@@ -22,11 +22,11 @@ class NodesController < ApplicationController
0
   end
0
   
0
   def directory
0
- @nodes = @revision.nodes(@load_path)
0
+ @nodes = @node.children
0
     
0
- @nodes.sort_by do |node|
0
- [node.is_directory ? 0 : 1, node.name]
0
- end
0
+ @nodes = @nodes.sort_by do |node|
0
+ [node.is_directory ? -1 : 1, node.name]
0
+ end.reverse
0
 
0
     respond_to do |wants|
0
       wants.html { render :action => :directory }

Comments

    No one has commented yet.