fix sort by time

The sorting wasn't working, because the 'stamp' property was not set and the sort only compared zeros.