refine animation sorting