Re:Show HN: Semlib – Semantic Data Processing
by adastra22 on Monday September 15, 2025 @01:53PM
(#45252821)
FWIW it doesn't serve as a great example because the ordering is not obvious. I think that is what GP was reacting to. When I say "sort a list of presidents by how right-leaning they are" in any other context people would probably assume the MOST right-leaning president to be listed first. It took me a moment to remember that Pythons 'sort' would be in ascending order by default.
[ Parent
| on HN ]
Re:Show HN: Semlib – Semantic Data Processing
by anishathalye on Monday September 15, 2025 @06:39PM
(#45255829)
Good point, I see how the example can be confusing. Updated the example to have `reverse=True` and a comment, hopefully that clarifies things.