Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hello everyone
How can I sort JSON data? I found nice example how json and array for my hight scores?
Example is here:
https ://www.scirra.com/forum/saving-and-loading-an-array-to-webstorage-capx_t68859?sid=c8ae8a3f32ac60d5472e221f968f4d11&start=10
I don't think it is possible to sort JSON data straight forward but you can load the JSON data into array, then just sort the array.
Develop games in your browser. Powerful, performant & highly capable.
Ok it's done!
RESULT:
[attachment=0:3bt31738][/attachment:3bt31738]
EDIT: There is a little mistake: this is file for sorting text, if you want numbers, conversion to number (adding int()) must be done