Hi all, Having a small challenge sorting a list, i...
# android
r
Hi all, Having a small challenge sorting a list, it is placing null values before successfully compared values. I don’t really get it. Please look here: https://pl.kotl.in/8iQlwp1t7
e
you did not post a mvce so we can't determine what behavior you are or aren't expecting here
but what you want may be one of https://pl.kotl.in/kr2oEpciw
r
Turned out indexOf returns -1 in case of none found and not null, thanks again