A hash is a different data structure than an array. Its advantage is that it allows arbitrary strings as keys instead of just a number. The disadvantage is that it can't be sorted. Read about "hash tables" on wikipedia if you want to know why.
In reply to Re^3: sorting hash by a certain value (that it is in an array)
by jethro
in thread sorting hash by a certain value (that it is in an array)
by gooyava
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |