Use str-lexi> for sorting priorities. This allows alphanumeric

characters as a priority and prevents errors in that case.
cvs
Chris Double 2004-07-26 04:00:56 +00:00
parent 5c664feeed
commit 8f3ba5b97e
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ USE: kernel
: priority-comparator ( item1 item2 -- bool )
#! 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> -- )
#! Return a list of items for the given todo list.