bugfix in tinysort.charorder, fixes #41
refactored documentation code