Adding stable sort support

- Updating the functions compliance tests
- Added stable sorting for sort and sort_by utilizing a Schwartzian transform