danzin, There's this very useful and widely used #Python tool, @coveragepy, that creates HTML coverage reports and uses #JavaScript in them.
I have proposed a simple PR to fix a small issue in sorting columns in the reports: https://github.com/nedbat/coveragepy/pull/1768/files
However, I'm very bad at #JS.
The behavior is working as intended, but I can't shake the feeling that my JS code is awful in some way I can't see.
Could you take a quick look at the diff and point out anything that should be improved? TIA!