ID:1630592
 
(See the best response by Zecronious.)
Code:
var/thislist=list("Item 1" = 1, "Item 1" = 2)
world<<thislist[thislist[1]]//Outputs 2 instead of 1.


Problem description:

If two indexes have the same value, is there any way to refer to the each instance individually instead of the last occurring instance? The only way I can see being able to do this is to manually sort by list2params().
There is only one "Item 1" in the list, so no.
Best response
Crazah that's not how associative lists work. If you define what "Item 1" is associated with twice, you're redefining what "Item 1" is associated with.

"Item 1" = 1
"Item 1" = 2
so "Item 1" = 2 because you overwrote it.

Try making a normal list?
thislist = list("Item 1","Item 1")

thislist[1] = "Item 1"
thislist[2] = "Item 1"
In response to Zecronious
Zecronious wrote:
Crazah that's not how associative lists work. If you define what "Item 1" is associated with twice, you're redefining what "Item 1" is associated with.

"Item 1" = 1
"Item 1" = 2
so "Item 1" = 2 because you overwrote it.

Try making a normal list?
> thislist = list("Item 1","Item 1")
>

thislist[1] = "Item 1"
thislist[2] = "Item 1"

Right thanks, that makes sense.