mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Revert "Order by auto_increment column by default"
This reverts commit 79b61855e5
.
This commit is contained in:
@@ -277,7 +277,7 @@ username.form['auth[driver]'].onchange();
|
||||
* @return null
|
||||
*/
|
||||
function selectOrderPrint($order, $columns, $indexes) {
|
||||
print_fieldset("sort", lang('Sort'), $order && $_GET["order"]);
|
||||
print_fieldset("sort", lang('Sort'), $order);
|
||||
$i = 0;
|
||||
foreach ((array) $_GET["order"] as $key => $val) {
|
||||
if (isset($columns[$val])) {
|
||||
@@ -440,17 +440,6 @@ username.form['auth[driver]'].onchange();
|
||||
$return[] = (isset($fields[$val]) ? idf_escape($val) : $val) . (isset($_GET["desc"][$key]) ? " DESC" : "");
|
||||
}
|
||||
}
|
||||
if (!$_GET["order"]) {
|
||||
foreach ($fields as $name => $field) {
|
||||
if ($field["auto_increment"]) {
|
||||
foreach ($indexes as $index) {
|
||||
if ($index["columns"] == array($name)) {
|
||||
return array(idf_escape($name) . " DESC");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user