order actor and tag api reply by name
This commit is contained in:
		@@ -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)))
 | 
			
		||||
	})
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user