users[usernames] = {
userName : username,
userId : id,
userStatuINT : statu,
userMobilemi : mobile,
};
Console log :
console log(JSON stringify(data));
Output :
{
"Guest-77":
{"userName":"Jack","userId":"l1YeHSMYWvqUNgPPpvxE","userStatuINT":9,"userMobilemi":false},
"Guest-47":
{"userName":"Carter","userId":"zsq3Qcpd9qGw3X6kpvxF","userStatuINT":0,"userMobilemi":false},
"Guest-68":{
{"userName":"Alex","userId":"jmstDvTTLhZCLRW7pvxG","userStatuINT":4,"userMobilemi":false}
}
While loop :
$.each(data, function(key, value){
// sorting...
});
Hello. Could you please advise on how I can sort the data based on the "userStatuINT" field?
Many thanks.