File size: 542 Bytes
feb903b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# viet-robot-task-priority-sorter

A tiny helper that sorts robot tasks by priority and deadline, so that a
scheduler or agent can pick the next best task to execute.

Function:

```python
sort_tasks(tasks: list[TaskItem]) -> list[TaskItem]
```

where each `TaskItem` has:

- `task_id`: string
- `priority`: `low`, `normal`, `high`, or `urgent`
- `deadline_local`: datetime string parseable by `datetime.fromisoformat`

Tasks are ordered primarily by priority (urgent → high → normal → low),
then by earliest deadline.

## License

MIT