When pushing an array\'s contents to another array I get
\"Uncaught TypeError: Cannot read property \'push\' of undefined\" error in this snippet.
order[] is undefined that's why
Just define order[1]...[n] to = some value
this should fix it