Utterance missing sequence order

sure.
i am getting api data. in data there is 10 json objects. i am printing these 10 records in bot using while loop. ex:

j=data.count
 while j>1:
	utter_message(data[j].[0]); // utterance order missing here
	j--;

its printing 10 records. but its order missing

ex:

      1 row
      2 row
      5 row
      3 row
      4 row....etc.

if count is 3 or (less size), it executing correct sequence. when records count is more than 5(not exactly) , it is not executing correctly. means when there is high data its missing its sequence.