. Hello,
I have this json file :
{
"fbl": {
"id": "fbl",
"user_id": "fbl@xxx.fr",
"nb_error": 0,
"time": "1:27.700"
},
"dev": {
"id": "dev",
"user_id": "dev@xxx.fr",
"nb_error": 0,
"time": "1:12.54"
},
"jul": {
"id": "jul",
"user_id": "jul@xx.fr",
"nb_error": 0,
"time": "0:58.700"
}
}
I want read this file and sort it in the order of the shortest time to the longest time (do not modify the file, just retrieve the values sort to display them with botkit).
First, for read this file I use :
fs.readFileSync('course.json/quiz.json', 'utf8');
It's a good choice ?
And can you help me to sort these values for to then display them?
Thank you