Browse files

Sort tables before returning them.

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

Fixes #2386
  • Loading branch information...
1 parent d97cf79 commit 311189a6626ced80d76b59919b40655c8582bda8 @markstory markstory committed Nov 23, 2013
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();
+ sort($tables);
return $tables;

2 comments on commit 311189a


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


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.