sort animals in order by creating datetime