You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, natsort does not detect NaN in input when sorting, and as a result the output can be unexpected (see SethMMorton/fastnumbers#2). _natsort_key should be updated to detect NaN, and then either raise a ValueError, or do something like replace it with -INF or +INF depending on a user's choice.
The text was updated successfully, but these errors were encountered:
Currently, natsort does not detect NaN in input when sorting, and as a result the output can be unexpected (see SethMMorton/fastnumbers#2).
_natsort_key
should be updated to detect NaN, and then either raise aValueError
, or do something like replace it with -INF or +INF depending on a user's choice.The text was updated successfully, but these errors were encountered: