[ring] Update sort order
This commit is contained in:
parent
3cafc7054d
commit
235c402efb
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
import wisp.{type Request, type Response}
|
import wisp.{type Request, type Response}
|
||||||
import gleam/string_builder
|
|
||||||
import gleam/http.{Get}
|
import gleam/http.{Get}
|
||||||
import gleam/io
|
|
||||||
import gleam/list
|
import gleam/list
|
||||||
import gleam/result
|
import gleam/result
|
||||||
import gleam/dynamic
|
import gleam/dynamic
|
||||||
|
@ -86,7 +84,7 @@ fn home_page(req: Request) -> Response {
|
||||||
use conn <- sqlight.with_connection(db_path)
|
use conn <- sqlight.with_connection(db_path)
|
||||||
let members =
|
let members =
|
||||||
sqlight.query(
|
sqlight.query(
|
||||||
"select member from ring",
|
"select member from ring order by member asc",
|
||||||
on: conn,
|
on: conn,
|
||||||
with: [],
|
with: [],
|
||||||
expecting: dynamic.decode1(Row, dynamic.element(0, dynamic.string)),
|
expecting: dynamic.decode1(Row, dynamic.element(0, dynamic.string)),
|
||||||
|
|
Loading…
Reference in a new issue