T357: Sort tracks by publication date rather than creation date.

This commit is contained in:
Peter Deltchev 2015-09-07 18:40:11 -07:00
parent 29527b4c88
commit 50ca465835
2 changed files with 3 additions and 3 deletions

View file

@ -136,4 +136,4 @@
return $query; return $query;
} }
} }

View file

@ -180,7 +180,7 @@ angular.module('ponyfm').factory('tracks', [
type: 'single' type: 'single'
name: 'sort' name: 'sort'
values: [ values: [
{title: 'Latest', query: '', isDefault: true, filter: 'order=created_at,desc'}, {title: 'Latest', query: '', isDefault: true, filter: 'order=published_at,desc'},
{title: 'Most Played', query: 'plays', isDefault: false, filter: 'order=play_count,desc'}, {title: 'Most Played', query: 'plays', isDefault: false, filter: 'order=play_count,desc'},
{title: 'Most Downloaded', query: 'downloads', isDefault: false, filter: 'order=download_count,desc'}, {title: 'Most Downloaded', query: 'downloads', isDefault: false, filter: 'order=download_count,desc'},
{title: 'Most Favourited', query: 'favourites', isDefault: false, filter: 'order=favourite_count,desc'} {title: 'Most Favourited', query: 'favourites', isDefault: false, filter: 'order=favourite_count,desc'}
@ -226,4 +226,4 @@ angular.module('ponyfm').factory('tracks', [
filterDef.promise() filterDef.promise()
self self
]) ])