Update collection sorting handling.