-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat(get-medias/sort): add option to customize sort on getMedias #37
feat(get-medias/sort): add option to customize sort on getMedias #37
Conversation
Thank you so much for your contribution! Two quick things before I review:
Again, thank you for contributing! We really appreciate it. |
agree. and would make it clear through the doc block what the default value is for both options.
|
looking better at it, I think what @nkalupahana is proposing is to pass an array of keys instead of a string. So I tend to agree and we stay consistent with iOS API. |
Hi @nkalupahana and @stewones, thanks for reviewing. I agree with both points but on point 1 the key can't be optional after implementing point 2, because being an array to enable multiple sort options, the key is the only important part inside the array, for example, an array of So here what I did:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job, LGTM.
Sorry @nkalupahana, didn't meant to remove you from review, github only gave me an option to ask @stewones, please review it as well |
Looks good! Could you remove the debug prints? Other than that, I think we're good to get this merged :) thanks for your contribution! |
@nkalupahana, @stewones, removed debug print. Should be good to go now. |
This PR will add the ability to sort
getMedias
using custom keys and ascending.#36