]> git.draconx.ca Git - homepage.git/blobdiff - layouts/listing.xhtml
Implement version-aware sorting of file listings.
[homepage.git] / layouts / listing.xhtml
index 2e053d5e085aab11a4a2ce88ab9d23f6f94d2d5c..aad56081170f2d33949ca3db6614b4d6e1d6cfb7 100644 (file)
@@ -54,7 +54,7 @@ end
     <tr><th /><th>Name</th><th>Last Modified</th><th>Size</th></tr>
   </thead>
   <tbody>
-<% files.keys.sort.each do |key| %>
+<% files.keys.sort{ |a, b| strverscmp(a, b) }.each do |key| %>
     <tr>
       <td>
 <% if files[key][:type] %>