myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3376] branches/wf4ever/app/models/pack.rb: Sort


From: noreply
Subject: [myexperiment-hackers] [3376] branches/wf4ever/app/models/pack.rb: Sort pack entries by name or URI
Date: Tue, 29 Jan 2013 18:41:40 +0000 (UTC)

Revision
3376
Author
stain
Date
2013-01-29 18:41:40 +0000 (Tue, 29 Jan 2013)

Log Message

Sort pack entries by name or URI

Modified Paths

Diff

Modified: branches/wf4ever/app/models/pack.rb (3375 => 3376)


--- branches/wf4ever/app/models/pack.rb	2013-01-29 18:41:31 UTC (rev 3375)
+++ branches/wf4ever/app/models/pack.rb	2013-01-29 18:41:40 UTC (rev 3376)
@@ -80,6 +80,7 @@
 
         @entries << ce
       end
+      @entries = @entries.sort_by {|ce| ce.name or ce.uri}
     end
   end
     

reply via email to

[Prev in Thread] Current Thread [Next in Thread]