I\'m having a hard time figuring out how to move an array element. For example, given the following:
var arr = [ \'a\', \'b\', \'c\', \'d\', \'e\']; <
var arr = [ \'a\', \'b\', \'c\', \'d\', \'e\'];
The splice method of Array might help: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice
splice
Array
Just keep in mind it might be relatively expensive since it has to actively re-index the array.