Skip to content

Manage an array of unsorted objects. #1273

Answered by TwitchBronBron
rrirower asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately no, we haven't included any sort functions in brighterscript. I think those types of enhancements would be better served as third party libraries instead of being embedded in brighterscript, so that way you can upgrade the library independently from brighterscript.

rodash has as sortBy function, but looking at the source code it seems to be linear as well.

This might be a good opportunity to implement a few of the more popular sorting algorithms, see which one performs best for your needs, and if you're feeling motivated, it could even be released as a ropm module or shareable roku library.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rrirower
Comment options

Answer selected by rrirower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants