Fix tasks sorting matching