When exporting some views and routines together (to separate manually and automatically managed parts of a schema) with `mysqldump ... --routines --tabels table1 table2 ...` I noticed that the generated dump-file is not importable again, because the routines are ordered after all the tables/ views and thus views that use them cannot be imported.
I have attached a test dump that I generated that shows this problem.
Workaround: Using negative logic and instead listing all the tables/views to skip seems to not trigger this bug.