diff --git a/CHANGES b/CHANGES
index a787bc5..6f2719d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -26,3 +26,5 @@
- Changed the look of the footer
- Added sort by Title and Date to bookmarks header
+01.08.2008, Version 0.8.13_beta
+- Adjusted order function so that arrow changes direction when changing order.
diff --git a/VERSION b/VERSION
index 04d604a..dca4b2c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.8.12_beta
\ No newline at end of file
+0.8.13_beta
\ No newline at end of file
diff --git a/bookmarks.php b/bookmarks.php
index e4334cf..2643f3a 100644
--- a/bookmarks.php
+++ b/bookmarks.php
@@ -20,8 +20,31 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
# print the bookmark header if enabled.
# Yes, it's ugly PHP code, but beautiful HTML code.
if ($show_header) {
- $order[0] == 'titleasc' ? $sort_t = 'titledesc' : $sort_t = 'titledasc';
- $order[0] == 'dateasc' ? $sort_d = 'datedesc' : $sort_d = 'dateasc';
+ if ($order[0] == 'titleasc') {
+ $sort_t = 'titledesc';
+ $img_t = '
';
+ }
+ else if ($order[0] == 'titledesc') {
+ $sort_t = 'titleasc';
+ $img_t = '
';
+ }
+ else {
+ $sort_t = 'titleasc';
+ $img_t = '
';
+ }
+
+ if ($order[0] == 'dateasc') {
+ $sort_d = 'datedesc';
+ $img_d = '
';
+ }
+ else if ($order[0] == 'datedesc') {
+ $sort_d = 'dateasc';
+ $img_d = '
';
+ }
+ else {
+ $sort_d = 'dateasc';
+ $img_d = '
';
+ }
echo '
' . "\n";
+ echo "\t\t\t\t" . 'Date ' . $img_d . '' . "\n";
echo "\t\t\t" . '' . "\n";
if ($show_edit) {
echo "\t\t\t" . '
' . "\n";
@@ -63,7 +86,7 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
}
$query_data ['order'] = $sort_t;
$query_string = assemble_query_string ($query_data);
- echo "\t\t\t" . 'Title
' . "\n";
+ echo "\t\t\t" . 'Title ' . $img_t . '' . "\n";
echo "\t\t" . '