updated to include the sort animation