Sort tables before returning them.

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

Fixes #2386
This commit is contained in:
mark_story 2013-11-23 12:34:16 -05:00
parent d97cf79545
commit 311189a662

View file

@ -940,6 +940,7 @@ class ModelTask extends BakeTask {
$this->err(__d('cake_console', 'Your database does not have any tables.')); $this->err(__d('cake_console', 'Your database does not have any tables.'));
return $this->_stop(); return $this->_stop();
} }
sort($tables);
return $tables; return $tables;
} }