I have ID's recorded in an array. Each ID represents a card, and those are unlocked in a random order.
So an array might look like this:
var3 = [4,1,3,6,7,4,2,1]
I want to to sort the entrees to become
var3 = [1,1,2,3,4,4,6,7]
Is there a simple script call that makes this happen?
I know, this is probably very basic javascript, but I can't seem to figure this one out. 😛
So an array might look like this:
var3 = [4,1,3,6,7,4,2,1]
I want to to sort the entrees to become
var3 = [1,1,2,3,4,4,6,7]
Is there a simple script call that makes this happen?
I know, this is probably very basic javascript, but I can't seem to figure this one out. 😛