Skip to content
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

How to swap elements in array #60

Open
JamesInform opened this issue Aug 10, 2020 · 0 comments
Open

How to swap elements in array #60

JamesInform opened this issue Aug 10, 2020 · 0 comments

Comments

@JamesInform
Copy link

Hi Andreas

First of all, thanks for providing such a great JSON library.

I am having a json array which I want to sort using bubble sort. To do so I need to swap elements in the array, e.g. swap the 5th element with the 2nd.

What is the easiest way to do so? Would be very nice, if I could just swap elements without knowing what json type a specific element has.

If swapping is not possible, could you implement a swap function for the TJsonArray type?

Cheers
James

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