diff --git a/resources/functions.php b/resources/functions.php
index 4e5ba4d647..bf9569d7eb 100644
--- a/resources/functions.php
+++ b/resources/functions.php
@@ -438,12 +438,18 @@
if (strlen($order_by) == 0) {
$order = 'asc';
}
- if ($order == "asc") {
- $description .= $text['label-order'].': '.$text['label-ascending'];
- $html .= "".escape($column_title)."";
+ if ($order_by == $field_name) {
+ if ($order == "asc") {
+ $description .= $text['label-order'].' '.$text['label-descending'];
+ $html .= "".escape($column_title)."";
+ }
+ else {
+ $description .= $text['label-order'].' '.$text['label-ascending'];
+ $html .= "".escape($column_title)."";
+ }
}
else {
- $description .= $text['label-order'].': '.$text['label-descending'];
+ $description .= $text['label-order'].' '.$text['label-ascending'];
$html .= "".escape($column_title)."";
}
$html .= "";