sorting by last update

This commit is contained in:
Jay McCarthy 2013-10-14 14:38:04 -06:00
parent 2bae74fd8c
commit 6380adeed3
2 changed files with 4 additions and 2 deletions

View File

@ -54,6 +54,7 @@
<table class="packages sortable">
<thead>
<tr>
<th></th>
<th>Package</th>
<th>Authors</th>
<th>Description</th>

View File

@ -367,9 +367,10 @@ $( document ).ready(function() {
{ class: ((now - (60*60*24*2)) < value['last-updated'] ? "recent" : "old") })
.data( "obj", value)
.append(
$('<td sorttable_customkey="' + value['last-updated'] + '">').html("")
.append( curate_span ),
$('<td>').html("")
.append( curate_span,
jslink( value['name'], function () { open_info ( value ); }) ),
.append( jslink( value['name'], function () { open_info ( value ); }) ),
$('<td>').append( $.map( value['authors'], function ( author, i ) {
return addfilterlink ( author, "author:" + author, "possible" ); } ) ),
$('<td>').text( value['description'] ),