From 0eeb9b49a203825768d14437486ddc9b4360dc52 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 22 Aug 2018 20:14:23 +0800 Subject: [PATCH] add list order by --- route/api/twitch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/api/twitch/index.js b/route/api/twitch/index.js index a166733..4e2d33c 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -19,7 +19,7 @@ const typeTwitch = async (c, n) => { } const typeSystem = async (c, n) => { - let text = `select * from "public"."twitch_channel"` + let text = `select * from "public"."twitch_channel" order by "name" asc` let values = [] let result = await c.db.query({text, values}) c.state.channelList = result.rows