On 13 February 2016 at 08:38, timothy adigun <2teezp...@gmail.com> wrote:
> In your analogy, if hashes are like folder,  keys and values are like what?
> Name of folders. If yes,  can those be sorted?  If yes,  they you have just
> made my point..  :)


Keys are files.

Values are file contents.

But no, the folders themselves cannot be "Sorted", sorting modifies
the *property* of the thing.

What you are doing, is sorting how it is *displayed*

If you used low-level mechanics to look at how the files are laid out
on the filesystem, the files in those folders wouldn't necessarily
even be stored near each other. "Soriting" them as such would be an
expensive mechanism moving stuff all over your hard drive.

All you're doing is sorting the *view* of it. Not the data itself.

-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to