wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17781: LJSUP-7433. Incorrect sorting communitie...

Committer: gprochaev
LJSUP-7433. Incorrect sorting communities

U   trunk/cgi-bin/LJ/Vertical.pm
Modified: trunk/cgi-bin/LJ/Vertical.pm
===================================================================
--- trunk/cgi-bin/LJ/Vertical.pm	2010-11-25 09:22:30 UTC (rev 17780)
+++ trunk/cgi-bin/LJ/Vertical.pm	2010-11-25 10:30:38 UTC (rev 17781)
@@ -408,8 +408,8 @@
 
     return                                  # 6. return result
         map {$_->[1]}                       # 5. get a cargo from temporary containers
-            sort {$a->[0] cmp $b->[0]}      # 4. sort it by a sort-keys
-                map {[lc $_->username, $_]} # 3. create list of [ sort-key, cargo-to-sort ]
+            sort {$b->[0] cmp $a->[0]}      # 4. sort it by a sort-keys
+                map {[lc $_->timeupdate, $_]} # 3. create list of [ sort-key, cargo-to-sort ]
                     grep { $_ }             # 2. remove empties from it, we don't want to die() on $_->username
                         (values %$cusers);  # 1. get communities list
 }

Tags: livejournal, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments