refactorization
order references by commit_time