Use str-lexi> for sorting priorities. This allows alphanumeric
characters as a priority and prevents errors in that case.cvs
parent
5c664feeed
commit
8f3ba5b97e
|
|
@ -130,7 +130,7 @@ USE: kernel
|
||||||
|
|
||||||
: priority-comparator ( item1 item2 -- bool )
|
: priority-comparator ( item1 item2 -- bool )
|
||||||
#! Return true if item1 is a higher priority than item2
|
#! Return true if item1 is a higher priority than item2
|
||||||
>r item-priority r> item-priority > ;
|
>r item-priority r> item-priority str-lexi> ;
|
||||||
|
|
||||||
: todo-items ( <todo> -- )
|
: todo-items ( <todo> -- )
|
||||||
#! Return a list of items for the given todo list.
|
#! Return a list of items for the given todo list.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue