msgfmt: sort strings

closes #6

unfortunately the fail-safe design had to be sacrified, to effectively
sort the string table we need to allocate dynamic memory.