Commits

Koen Van der Auwera  committed 616fed7

revert posts and sort tags

  • Participants
  • Parent commits fc9c3ee

Comments (0)

Files changed (1)

File amanda/store.rb

     end
 
     def tags
-      redis.smembers TAGS_KEY
+      redis.smembers(TAGS_KEY).sort!
     end
 
     def posts_for_tag(tag)
     end
 
     def posts
-      redis.zrange(POSTS_KEY, 0, -1).map{|p| post(p)}
+      redis.zrevrange(POSTS_KEY, 0, -1).map{|p| post(p)}
     end
 
     def random