logreader: add data sorting