diff options
| author | 2025-08-08 06:59:55 +0500 | |
|---|---|---|
| committer | 2025-08-08 06:59:55 +0500 | |
| commit | 0e96910b1947d1acc8cfd4223e6d61884328292a (patch) | |
| tree | b7c7f202ee81718120a15b131484eb25698c430b | |
| parent | ce97ea9826d63072c676f007d4f9e1526cb32f8d (diff) | |
tasks sort_by UDA order in getIdsTask function
| -rwxr-xr-x | lib/edit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/edit.sh b/lib/edit.sh index 3b2c878..034670e 100755 --- a/lib/edit.sh +++ b/lib/edit.sh @@ -42,7 +42,7 @@ function getIdsTask() { nameProject=$(getNameProject "$1") - readarray -t idsTaskProject < <(task project:"$nameProject" +current _ids) + readarray -t idsTaskProject < <(task project:"$nameProject" +current export | jq -r 'sort_by(.order)[] | .id') printf '%s\n' "${idsTaskProject[@]}" } |
