Skip to content

Commit

Permalink
Display the index with most recent first.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed Sep 6, 2009
1 parent efd7ac9 commit edf0bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vanilla/dynasnips/index.rb
Expand Up @@ -3,7 +3,7 @@
class Index < Dynasnip
def get(*args)
# TODO: figure out a way around calling Soup/AR methods directly.
list = Soup.tuple_class.find_all_by_name('name').map { |tuple|
list = Soup.tuple_class.find_all_by_name('name', :order => 'updated_at DESC').map { |tuple|
"<li>#{Vanilla::Routes.link_to tuple.value}</li>"
}
"<ol>#{list}</ol>"
Expand Down

0 comments on commit edf0bb6

Please sign in to comment.