diff --git a/rofi-task.sh b/rofi-task.sh index c6bab23..453e034 100755 --- a/rofi-task.sh +++ b/rofi-task.sh @@ -46,7 +46,7 @@ display_current_task() { # {{{ # }}} select_task() { # {{{ ## Display pending tasks list and get title from the choosen one - TITLE=$(task status:pending export | jq -r 'sort_by( -.urgency )[] | [ (.id|tostring), .description ] | join(" ")' | + TITLE=$(task status:pending export | jq -r 'sort_by( -.urgency )[] | [ (.id|tostring), .description ] | join(" ")' | sort --numeric-sort --reverse | rofi -location 2 -no-auto-select -i -dmenu -p "Task" -color-enabled -color-normal "${black},${blue},${black},${blue},${black}" -color-window "${black},${black}" | cut --delimiter=" " --field=2)