Add sort function to stdlib
Implement list function and use it in reverse function