Skip to content

Added category sorting #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed

Conversation

gerazov
Copy link
Contributor

@gerazov gerazov commented Dec 16, 2021

Another try at addressing #128

@kristijanhusak
Copy link
Member

Please first confirm that current sorting is not behaving the same as in Emacs orgmode.

@@ -37,6 +57,12 @@ local function sort_agenda_items(agenda_items)
return a.headline:get_priority_sort_value() > b.headline:get_priority_sort_value()
end

-- if both are on the same day check category
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kristijanhusak can you help with this part - basically I want to give preference to overdue items over categories, but it doesn't seem to do the trick ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok - figured it out - it's headline_date:is_same() rather than date:is_same()

@gerazov
Copy link
Contributor Author

gerazov commented Dec 17, 2021

ok now it works with deadlines as well #128 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants