What we normally do in our team is to make sure the numbers are of the same length.
Task-01
Task-02
Task-22
Task-03
Task-34
This way when sorted it will still be as expected. However, you need to know beforehand the max length of the sequence, so everything will be formatted the same way.