+ 6
Sorting Firebase data
I cant sort the data that I have imported to my code from the firebase.... please how will I sort the players and their xp correctly? https://code.sololearn.com/Wy7lZ5e0z9v7/?ref=app
4 odpowiedzi
+ 4
You are trying to pass a CSS selector to the getElementByTagName() method. You should just pass the tag name(table) or use the querySelectorAll() method to get the collection of tables.
At line 16 change
let table = document.getElementsByTagName("#modal table");
to
let table = document.querySelectorAll("#modal table");
BTW I notice a few other errors.
At line 23 change tr to "tr"
At line 34 change
Obj[`${newObj[i]}`]
to
obj[`${newObj[i]}`]
+ 4
ODLNT yeah!!!!!😂
+ 2
ODLNT thank you Soo much!!!!!!!!!!!!!!
😁😁😁😁😁😅😅
I did not even notice those silly bugs 😂😂
+ 2
L̷££ Y̷O̷O̷ N̷∆L̷E̷, you're welecome. It is the silly bugs that bite us on the butt most of the time.🐞🦂🦟🐜👌🏽👍🏽