Commit e18eb9c3 authored by makara's avatar makara Committed by patricksettle
Browse files

#1311704 - Added explicit order to variables returned by the database in...

#1311704 - Added explicit order to variables returned by the database in variable_features_export_render -- backport adding explict ORDER BY
parent f5eef1a9
......@@ -174,7 +174,7 @@ function variable_features_export_render($module, $data) {
$code = ' $export = array();'."\n\n";
$identifier = $schema['export']['identifier'];
$result = db_query("SELECT * FROM {variable} WHERE name IN (" . db_placeholders($data, 'text') . ")", $data);
$result = db_query("SELECT * FROM {variable} WHERE name IN (" . db_placeholders($data, 'text') . ") ORDER BY name", $data);
while ($object = db_fetch_object($result)) {
$object = _ctools_export_unpack_object($schema, $object);
$code .= _ctools_features_export_crud_export('variable', $object, ' ');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment