Skip to content
Permalink
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();
}
sort($tables);
return $tables;
}

2 comments on commit 311189a

@ravage84

This comment has been minimized.

Copy link
Member

ravage84 replied Nov 23, 2013

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

@markstory

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.