Permalink
Browse files

sorting tweets

  • Loading branch information...
1 parent e028639 commit e622db02d83e250d69be671f9bb4f3801a627869 @jexp committed May 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/user.erb
View
@@ -5,8 +5,8 @@
<h3>Tweets</h3>
<ul>
- <% @user.outgoing(:TWEETED).each do |i| %>
- <li><%= i.text %></li>
+ <% @user.outgoing(:TWEETED).sort { |t1,t2| t2.date <=> t1.date }.each do |i| %>
+ <li><%= i.text %><!--<%= Time.at(i.date) %>--></li>
<% end %>
</ul>

0 comments on commit e622db0

Please sign in to comment.