Closes #172 (closed)
I had to add additional typing information to _sorted_nicely for Pyright to properly propagate the type information.
_sorted_nicely