fixed some typos and clarifying

Most of the changes are minor, except for the doc for dictsort, which was incorrect for the third example. Hope this is helpful.