🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #430

Re: Wielowymiarowe sortowanie listy haszy

#430
From: Marcin Mielżyński
Date: Fri, 09 Feb 2007 15:18
15 lines
1195 bytes
Jaroslaw Zabiello wrote:

> 
> items = items.sort_by do |item| 
>   item[:level1]
     [item[:level1],item[:level2]]	
> end
> 
> Da się jakoś ten blok uzupełnić o sortowanie wewnatrzne wg kolejnego
> poziomu?
> 

ale da się wydajniej (choć sort_by i tak robi swartzian transform)

lopex
Technical Details
Message-ID: <eqi3a2$o9k$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <gqhrtwbv9mw1$.jn47g7rpeiib$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Marcin Mielżyński <lopx@gazeta.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Wielowymiarowe sortowanie listy haszy
Date: Fri, 09 Feb 2007 16:18:03 +0100
Organization: Onet.pl
Lines: 15
Message-ID: <eqi3a2$o9k$1@news.onet.pl>
References: <gqhrtwbv9mw1$.jn47g7rpeiib$.dlg@40tude.net>
NNTP-Posting-Host: cuo178.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1171034242 24884 83.19.70.178 (9 Feb 2007 15:17:22 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Fri, 9 Feb 2007 15:17:22 +0000 (UTC)
X-Sender: 5Da2qcG7AWj7WISFX859Php/OS6q4VnB
In-Reply-To: <gqhrtwbv9mw1$.jn47g7rpeiib$.dlg@40tude.net>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit