Skip to content
Browse files

Sort tables before returning them.

This fixes unsorted table lists in the various bake related tasks.

Fixes #2386
  • Loading branch information...
markstory committed Nov 23, 2013
1 parent d97cf79 commit 311189a6626ced80d76b59919b40655c8582bda8
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -940,6 +940,7 @@ public function getAllTables($useDbConfig = null) {
$this->err(__d('cake_console', 'Your database does not have any tables.'));
return $this->_stop();
return $tables;

2 comments on commit 311189a


This comment has been minimized.

Copy link

ravage84 replied Nov 23, 2013

And there was no test, which had to be adjusted?


This comment has been minimized.

Copy link
Member Author

markstory replied Nov 23, 2013

Nope, I figured it wasn't worth the effort to try and simulate the probkem as well. Perhaps I was just being lazy today.

Please sign in to comment.
You can’t perform that action at this time.