bugfix: make sure views and tables are listed in the right order for removal -- thanks, Thomas!