added sort/2 - resolves #42