Explain me why my twitch app is malfunctioning [Solved]

Explain me why my twitch app is malfunctioning [Solved]
0

#1

I called getjson for channels and pushed the resultant object in a array one by one,now when i reload my page everytime ,it is showing channel names in random order,even when i am calling them by array index.
link is http://codepen.io/AronStone/pen/qadmkz?editors=0011


#2

Asynchronous code is not guaranteed to resolve in the same order it was called.