builtin sorted function and reference implementation of sort making it stable.

Adds a reference implementation of the python `list.sort` method and of the builtin `sorted` method. Addressing #19,  and re-iterating #43.

I ran `dist m`. 

I need to wrap the sorted function with `native.js`. And try out all the permutations of the parameters.