Use _id instead of timestamp column to sort messages (closes #136)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>