rust-lang-ua / rustcamp

Getting ready for prod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rename files with zero padding

imlvts opened this issue · comments

Problem to solve

When I look at the list of tasks in some chapters, I see the following list: 3_10, 3_11, 3_1, ...
This order is incorrect.

Proposal

Rename tasks with zero padding, so that alphabetical sorting gives the right order of tasks.
For example, 3_01, 3_02, ... , 3_09 , 3_10, 3_11

Prior art

https://stackoverflow.com/questions/13522338/zero-padding-and-sorting-linux-shell-scripting

Alternatives

Looking for alternatives, but the only one I see is being careful.

Links & references

https://stackoverflow.com/questions/13522338/zero-padding-and-sorting-linux-shell-scripting

What is the problem with wrong sorting? I mean students don't have any scripting tasks or tasks related to the files/directories manipulations. So, this "wrong" order doesn't cause a lot of trouble.

I understand your motivation but currently, we are not planning renaming tasks. Such improvement will affect the repo a lot and will cause a lot of changes. Moreover, we'll be forced to update our bot for assignment checking.

Maybe we'll look at it before the winter bootcamp, but we're not going to fix it for now