On 9/2/06, Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote:
On Sat, Sep 02, 2006 at 10:36:50AM -0400, J Cook wrote:
> The sort field is an integer type. Why isn't this ordering it?
Because you're mapping the nice sorted list into a hash.

Hashes don't maintain sort order.  That's why you see
 map { do something} sort keys %mylittlehash

and

foreach (sort keys %$myhashref ) { do_domething}

as often as not.

Len.


--
[EMAIL PROTECTED]
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to