Skip to content

Fixed sortvector issue with string as key in C# #8553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
whitecostume opened this issue Mar 8, 2025 · 0 comments
Open

Fixed sortvector issue with string as key in C# #8553

whitecostume opened this issue Mar 8, 2025 · 0 comments

Comments

@whitecostume
Copy link

@neoblazes I am not entirely clear on what you're trying to do. What is the index, and how is it broken?我不太清楚你想做什么。索引是什么?它是怎么坏的?
Sorting an existing FlatBuffer in-place, or generally modifying an existing FlatBuffer is difficult, you should want to sort it before creating it.对现有的 FlatBuffer 进行排序或通常修改现有的 FlatBuffer 很困难,您应该在创建它之前对其进行排序。

What he meant is that a json file that has been sorted by key becomes an unordered file after being exported as a binary file by flatc, which means that SortedVector cannot be used to find the corresponding data (when the key is a string)

I found out that it was a problem with string.CompareTo #8547

Originally posted by @whitecostume in #186
Fixed sortvector issue with string as key in C# #8547

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

No branches or pull requests

1 participant