Permalink
Browse files

Add option to sort by title in admin UI

Implements & resolves #2356
  • Loading branch information...
dgw committed Mar 1, 2018
1 parent 8cfbd07 commit bda14258ffc0b5b94652f005d114d9e5db4e2820
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 bda1425

Please sign in to comment.