Sort finished tasks below unfinished ones