Index: mythplugins/mythweb/includes/sorting.php
===================================================================
--- mythplugins/mythweb/includes/sorting.php (revision 18254)
+++ mythplugins/mythweb/includes/sorting.php (working copy)
@@ -145,6 +145,10 @@
return by_no_articles($a->title, $b->title);
}
+ function by_filename(&$a, &$b) {
+ return strcasecmp($a->filename, $b->filename);
+ }
+
function by_subtitle(&$a, &$b) {
return by_no_articles($a->subtitle, $b->subtitle);
}
Index: mythplugins/mythweb/modules/_shared/lang/English.lang
===================================================================
--- mythplugins/mythweb/modules/_shared/lang/English.lang (revision 18254)
+++ mythplugins/mythweb/modules/_shared/lang/English.lang (working copy)
@@ -216,6 +216,7 @@
"Exclude Repeat Episodes"
"Exec. Producer"
"Extended Check"
+"File Name"
"File Size"
"film"
"Filter"
@@ -655,6 +656,7 @@
"Songs Played"
"Songs Rated"
"Sorry, but you cannot add this playlist as it would create a circular dependancy."
+"Sort By"
"sortby_channum"
Sort channel list by channel number (checked) or by callsign (unchecked)
"sourceid"
Index: mythplugins/mythweb/modules/video/handler.php
===================================================================
--- mythplugins/mythweb/modules/video/handler.php (revision 18254)
+++ mythplugins/mythweb/modules/video/handler.php (working copy)
@@ -212,6 +212,18 @@
else
$Filter_Browse = -1;
+ if( isset($_REQUEST['sortby']) ) {
+ $_SESSION['video_sortby'] = array(array('field' => $_REQUEST['sortby'],
+ 'reverse' => true));
+ }
+
+ if (isset($_SESSION['video_sortby']) )
+ $Filter_Sort = $_SESSION['video_sortby'][0]['field'];
+ else
+ $Filter_Sort = 'title';
+
+
+
if( isset($_REQUEST['search']) ) {
$Filter_Search = $_REQUEST['search'];
if( strlen($Filter_Search) != 0)
Index: mythplugins/mythweb/modules/video/tmpl/default/video.php
===================================================================
--- mythplugins/mythweb/modules/video/tmpl/default/video.php (revision 18254)
+++ mythplugins/mythweb/modules/video/tmpl/default/video.php (working copy)
@@ -278,6 +278,12 @@
+ :
+
:
: