amend logIndex to support sorting on date in future