I solved the problem by using :sorted for all the tasks without using RG. Thank you for helping me!