diff options
Diffstat (limited to 'h-source/Application')
-rw-r--r-- | h-source/Application/Include/hardware.php | 1 | ||||
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 69ad2ab..ccd23ae 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -344,6 +344,7 @@ class Notebooks extends Hardware "Philips" => "Philips", "Positivo" => "Positivo", "Purism" => "Purism", + "Qbex" => "Qbex", "SAMSUNG" => "SAMSUNG", "Sony" => "Sony", "System76" => "System76", diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 5cb1036..903c013 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -122,13 +122,13 @@ function getOrderByClause($string) $orderBy = 'model desc'; break; case 'compatibility': - $orderBy = 'compatibility'; + $orderBy = 'compatibility, hardware.id_hard desc'; break; case 'undef': - $orderBy = 'hardware.id_hard desc'; + $orderBy = 'compatibility, hardware.id_hard desc'; break; default: - $orderBy = 'hardware.id_hard desc'; + $orderBy = 'compatibility, hardware.id_hard desc'; } return $orderBy; @@ -458,4 +458,4 @@ function getTranslationFunction($fieldName) } return "gtext"; -}
\ No newline at end of file +} |