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
Since there is no rfc for JSON path, I am not sure what the conventional behaviour is then. I assume that sorting by casting all to string makes sense if one of them is a string. Other option would be to throw a custom error.
The text was updated successfully, but these errors were encountered:
Great library. Thanks.
Problem:
Today I noticed that it crashed when you have a list of objects which is then sorted and the keys have different data types.
TypeError: '<' not supported between instances of 'str' and 'int'
in init.py in _sorter at line 205
with
and
sortby=code
Expected behaviour:
Since there is no rfc for JSON path, I am not sure what the conventional behaviour is then. I assume that sorting by casting all to string makes sense if one of them is a string. Other option would be to throw a custom error.
The text was updated successfully, but these errors were encountered: