avoid warnings in some occasiosn
Sorting is now null safe, fixes #22