add list order by

This commit is contained in:
Jay 2018-08-22 20:14:23 +08:00
parent 063b7e277f
commit 0eeb9b49a2

View File

@ -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