(#112) - don't serialize emitted value

The solution here is to sort in memory before insertion but keep them in order by having additional pos value.

Alternative solution would be: don't add that pos value but sort on read.