It works, thanks!

El 30/05/2021 a las 6:04, Ihor Radchenko escribió:
Ypo <ypuntot@gmail.com> writes:

Hi! Thanks for answering. It was just a thought. Habits appear like this 
(not sure how images can be attached in the mail list):

borrar-1

I thought it would be interesting to have the option to show them like this:

borrar-2

Thanks for your interest
You can do it simply by changing sorting strategy in agenda. By default,
org-agenda-sorting-strategy is

((agenda habit-down time-up priority-down category-keep)
 (todo priority-down category-keep)
 (tags priority-down category-keep)
 (search category-keep))

You can see that for agenda `habit-down' is considered first in the
sorting order. That makes sense if you want all the habits to be grouped
together. If you prefer the habits to honour scheduled time ordering,
you simply swap `habit-down' and `time-up' in the sorting strategy:

(setq org-agenda-sorting-strategy '((agenda time-up habit-down priority-down category-keep)
				    (todo priority-down category-keep)
				    (tags priority-down category-keep)
				    (search category-keep)))

Best,
Ihor