Add an order by tittle asc clasuse to the Podcast query. Address #34.
This commit is contained in:
parent
b1c3b4f9cc
commit
815639fe5f
@ -27,7 +27,10 @@ pub fn get_podcasts() -> Result<Vec<Podcast>> {
|
|||||||
let db = connection();
|
let db = connection();
|
||||||
let con = db.get()?;
|
let con = db.get()?;
|
||||||
|
|
||||||
podcast.load::<Podcast>(&con).map_err(From::from)
|
podcast
|
||||||
|
.order(title.asc())
|
||||||
|
.load::<Podcast>(&con)
|
||||||
|
.map_err(From::from)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_episodes() -> Result<Vec<Episode>> {
|
pub fn get_episodes() -> Result<Vec<Episode>> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user