Add missing unicode method

Signed-off-by: Michal Čihař <michal@cihar.com>
Move sorting to separate function

Signed-off-by: Michal Čihař <michal@cihar.com>
Better code formatting

Signed-off-by: Michal Čihař <michal@cihar.com>
One place to generate dictionary title

Signed-off-by: Michal Čihař <michal@cihar.com>
Use .format instead of %

Signed-off-by: Michal Čihař <michal@cihar.com>