Browse Source

Sort tables before returning them.

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

Fixes #2386
mark_story 12 years ago
parent
commit
311189a662
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/Cake/Console/Command/Task/ModelTask.php

+ 1 - 0
lib/Cake/Console/Command/Task/ModelTask.php

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