cluster states in state table by timestamp