1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Merge pull request #3091 from Deltik/fix-3086

Removed pointless second sort in e_tree_model
This commit is contained in:
Tijn Kuyper 2018-04-06 14:29:16 +02:00 committed by GitHub
commit 5216eda6e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3617,7 +3617,7 @@ class e_tree_model extends e_front_model
return "";
}, $db_query)
// Optimization goes with e_tree_model::moveRowsToTreeNodes()
. " ORDER BY " . $this->getParam('sort_parent') . ", " . $this->getParam('sort_field');
. " ORDER BY " . $this->getParam('sort_parent');
$this->setParam('db_query', $db_query);
}