ActivityPub-federated video streaming platform using P2P directly in your web browser
Server: correctly sort tags by name asc
Chocobozzz178edb20259f
diff --git a/server/models/video.js b/server/models/video.jsindex af05a861fb..04478c8d74 100644--- a/server/models/video.js+++ b/server/models/video.js@@ -320,7 +320,7 @@ function listForApi (start, count, sort, callback) {offset: start,limit: count,distinct: true, // For the count, a video can have many tags- order: [ modelUtils.getSort(sort) ],+ order: [ modelUtils.getSort(sort), [ this.sequelize.models.Tag, 'name', 'ASC' ] ],include: [{model: this.sequelize.models.Author,@@ -440,7 +440,7 @@ function searchAndPopulateAuthorAndPodAndTags (value, field, start, count, sort,offset: start,limit: count,distinct: true, // For the count, a video can have many tags- order: [ modelUtils.getSort(sort) ]+ order: [ modelUtils.getSort(sort), [ this.sequelize.models.Tag, 'name', 'ASC' ] ]}// Make an exact search with the magnet