Adding the sort_by function
Adding a sort_by test case
Updating docs for sort_by