order folders/feeds by title
This commit is contained in:
parent
d48c4cbb0c
commit
7a7ecd2c41
2 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ func (s *Storage) ListFeeds() []Feed {
|
||||||
select id, folder_id, title, description, link, feed_link,
|
select id, folder_id, title, description, link, feed_link,
|
||||||
ifnull(icon, '') != '' as has_icon
|
ifnull(icon, '') != '' as has_icon
|
||||||
from feeds
|
from feeds
|
||||||
|
order by title collate nocase
|
||||||
`)
|
`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Print(err)
|
s.log.Print(err)
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ func (s *Storage) ListFolders() []Folder {
|
||||||
rows, err := s.db.Query(`
|
rows, err := s.db.Query(`
|
||||||
select id, title, is_expanded
|
select id, title, is_expanded
|
||||||
from folders
|
from folders
|
||||||
|
order by title collate nocase
|
||||||
`)
|
`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Print(err)
|
s.log.Print(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue