You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/17 13:20:55 UTC

[GitHub] [airflow] potiuk commented on issue #18316: Use natural sorting while listing DAGs

potiuk commented on issue #18316:
URL: https://github.com/apache/airflow/issues/18316#issuecomment-921792326


   I think there is no special treatment (and they will never be) of dag ids containing numbers. Dag id s are strings not numbers.
   
   Especially that this is your own convention to use numbers and it's super easy to fix it.
   
    If you wan your DAGs to be sorted according to the number, simply format their ids with leading 0s:
   
   test_dag_009, test_dag_010 will be sorted properly. And it, super easy to generate such DAG ids:
   
   ```
   printf "%.5d\n" 4
   00004
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org