Sort animations with Processing