Skip to content

Commit

Permalink
Sort tables before returning them.
Browse files Browse the repository at this point in the history
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 311189a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -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;
}

Expand Down

2 comments on commit 311189a

@ravage84
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@markstory
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.