mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add ability to change entry sort order in the UI
This commit is contained in:
parent
27d170cbec
commit
78f6bbe93d
28 changed files with 122 additions and 30 deletions
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
"miniflux.app/http/request"
|
||||
"miniflux.app/http/response/html"
|
||||
"miniflux.app/model"
|
||||
"miniflux.app/ui/session"
|
||||
"miniflux.app/ui/view"
|
||||
)
|
||||
|
@ -23,7 +22,7 @@ func (h *handler) sharedEntries(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
builder := h.store.NewEntryQueryBuilder(user.ID)
|
||||
builder.WithShareCodeNotEmpty()
|
||||
builder.WithOrder(model.DefaultSortingOrder)
|
||||
builder.WithOrder(user.EntryOrder)
|
||||
builder.WithDirection(user.EntryDirection)
|
||||
|
||||
entries, err := builder.GetEntries()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue