add sorting and issorted function and the corresponding tests
Merge branch 'master' of https://github.com/jdussouillez/libcollections