Skip to main content

sort_by_priority

Function sort_by_priority 

Source
pub fn sort_by_priority(body: &str) -> Option<String>
Expand description

Stable-sort the item lines of a pending body by per-item priority (#backlog-priority-attribute), preserving every non-item segment (blank lines, prose, ordered-list separators) at its original position. Returns Some(new_body) when the order changes, None otherwise (idempotent).