News for hackers. Stuff that matters.
Re:Poll: Where do you live? by gabrielsroka on Friday February 04, 2022 @03:54PM (#30213045)
More efficient, uses integers, and sortable in the table:

   console.table([...document.querySelectorAll('.fatitem table .athing')].map(el => ({place: el.textContent.trim(), score: parseInt(el.nextSibling.textContent)})).sort((a, b) => b.score - a.score))
Re:Poll: Where do you live? by gabrielsroka on Friday February 04, 2022 @04:10PM (#30213265)
with tie breakers

     console.table([...document.querySelectorAll('.fatitem table .athing')].map(el => ({place: el.textContent.trim(), score: parseInt(el.nextSibling.textContent)})).sort((a, b) => b.score - a.score || a.place.localeCompare(b.place)))