Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sorting tweets

  • Loading branch information...
commit e622db02d83e250d69be671f9bb4f3801a627869 1 parent e028639
@jexp authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/user.erb
View
4 views/user.erb
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.