added sorting of goals according to days