Display the json images by order while tapping the button
<p>What i want is,i have five buttons,and i have to retrieve the five images(1,2,3,4,5)in json,after that if i have to tapping the first button means then display the images by 1,2,3,4,5 order,after selecting the second button means then display the images by 2,3,4,5,1 order,after selecting the third button means then display the images by 3,4,5,1,2 order,after selecting the fourth button means then display the images by 4,5,1,2,3 order,after selecting the fiveth button means then display the images by 5,1,2,3,4 order,thats all about my question,could you please guide me to done this operation,any solution for this much appreciated,thank you.</p>