Permalink
Browse files

Merge pull request #2370 from dgw/2356-sort-by-title

Add option to sort by title in admin UI
  • Loading branch information...
dgw committed Mar 3, 2018
2 parents 8cfbd07 + bda1425 commit 7027870089d37cdd7041d30fd2fa589ef2c5b9ff
Showing with 5 additions and 0 deletions.
  1. +4 −0 admin/index.php
  2. +1 −0 includes/functions-html.php
@@ -120,6 +120,10 @@
$sort_by_text = yourls__( 'URL' );
$sort_by = 'url';
break;
case 'title':
$sort_by_text = yourls__( 'Title' );
$sort_by = 'title';
break;
case 'timestamp':
$sort_by_text = yourls__( 'Date' );
$sort_by = 'timestamp';
@@ -249,6 +249,7 @@ function yourls_html_tfooter( $params = array() ) {
$_options = array(
'keyword' => yourls__( 'Short URL' ),
'url' => yourls__( 'URL' ),
'title' => yourls__( 'Title' ),
'timestamp' => yourls__( 'Date' ),
'ip' => yourls__( 'IP' ),
'clicks' => yourls__( 'Clicks' ),

0 comments on commit 7027870

Please sign in to comment.