Add issue history sorting
Fix issue #2, by specifying encoder