Changed main views in JCB to sort id descending.

This commit is contained in:
2020-05-22 02:32:58 +02:00
parent 2564b75e5d
commit 3a2b8497e3
70 changed files with 278 additions and 180 deletions

View File

@ -322,7 +322,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -369,7 +369,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -249,7 +249,7 @@ class ComponentbuilderModelClass_methods extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -296,7 +296,7 @@ class ComponentbuilderModelClass_methods extends JModelList
}
// Order the results by ordering
$query->order('a.ordering ASC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -249,7 +249,7 @@ class ComponentbuilderModelClass_properties extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -296,7 +296,7 @@ class ComponentbuilderModelClass_properties extends JModelList
}
// Order the results by ordering
$query->order('a.ordering ASC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -263,7 +263,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -310,7 +310,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -296,7 +296,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -343,7 +343,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -246,7 +246,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -293,7 +293,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -362,7 +362,7 @@ class ComponentbuilderModelFields extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -409,7 +409,7 @@ class ComponentbuilderModelFields extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -2232,7 +2232,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -2279,7 +2279,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -222,7 +222,7 @@ class ComponentbuilderModelJoomla_modules extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));

View File

@ -371,7 +371,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));

View File

@ -235,7 +235,7 @@ class ComponentbuilderModelLayouts extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -282,7 +282,7 @@ class ComponentbuilderModelLayouts extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -277,7 +277,7 @@ class ComponentbuilderModelLibraries extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));

View File

@ -181,7 +181,7 @@ class ComponentbuilderModelPlaceholders extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -228,7 +228,7 @@ class ComponentbuilderModelPlaceholders extends JModelList
}
// Order the results by ordering
$query->order('a.ordering ASC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -267,7 +267,7 @@ class ComponentbuilderModelSite_views extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -314,7 +314,7 @@ class ComponentbuilderModelSite_views extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -323,7 +323,7 @@ class ComponentbuilderModelSnippets extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -370,7 +370,7 @@ class ComponentbuilderModelSnippets extends JModelList
}
// Order the results by ordering
$query->order('a.ordering ASC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -235,7 +235,7 @@ class ComponentbuilderModelTemplates extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -282,7 +282,7 @@ class ComponentbuilderModelTemplates extends JModelList
}
// Order the results by ordering
$query->order('a.id DESC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);

View File

@ -179,7 +179,7 @@ class ComponentbuilderModelValidation_rules extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
@ -226,7 +226,7 @@ class ComponentbuilderModelValidation_rules extends JModelList
}
// Order the results by ordering
$query->order('a.ordering ASC');
$query->order('a.id desc');
// Load the items
$db->setQuery($query);