order actor and tag api reply by name
This commit is contained in:
parent
39ed5cd7d8
commit
752200d42e
@ -25,7 +25,7 @@ func getActorsFromDB() {
|
||||
* @apiSuccess {string} .Thumbnail Portrait Thumbnail
|
||||
*/
|
||||
api.AddHandler("getAllActors", api.ActorNode, api.PermUser, func(context api.Context) {
|
||||
query := "SELECT actor_id, name, thumbnail FROM actors"
|
||||
query := "SELECT actor_id, name, thumbnail FROM actors ORDER BY name ASC"
|
||||
context.Json(readActorsFromResultset(database.Query(query)))
|
||||
})
|
||||
|
||||
|
@ -78,7 +78,7 @@ func getFromDB() {
|
||||
* @apiSuccess {string} TagName name of the Tag
|
||||
*/
|
||||
api.AddHandler("getAllTags", api.TagNode, api.PermUser, func(context api.Context) {
|
||||
query := "SELECT tag_id,tag_name from tags ORDER BY tag_name"
|
||||
query := "SELECT tag_id,tag_name from tags ORDER BY tag_name ASC"
|
||||
context.Json(readTagsFromResultset(database.Query(query)))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user