Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Sorting based on string type. Problems when distance is very small value ('5.55555E-6') #35

Open
JoanFM opened this issue Apr 21, 2021 · 1 comment

Comments

@JoanFM
Copy link

JoanFM commented Apr 21, 2021

We have observed some weird behavior seeing small distances at the end of the list of closest matches.

I believe the problem is that the distances are returned as string types and then the sorting does not work

tuple_lst = sorted(tuple_list, key=lambda x: x[0],

@JoanFM
Copy link
Author

JoanFM commented Apr 21, 2021

Problem appears when keys indexed are of type str

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant