There's no direct way to sort an array in JSON within Construct 3. However, there's a way to do it using an intermediate Array object. I want to show how this can be done, in case it's helpful to others.
So, imagine you're using JSON for a leaderboard. Inside your JSON, you have a "leaderboard" object containing an array with player data (username, score, avatar, etc.).
Here are the events:
Here is the result: