Started working on `sort`

Implementing internal `_sort` function that should also be used by some comparison operators like > and <.
More work on `sort`

Comparing two objects/arrays now works. Not thoroughly tested yet.