diff options
author | 2017-12-02 17:04:01 -0800 | |
---|---|---|
committer | 2017-12-02 17:04:01 -0800 | |
commit | 2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4 (patch) | |
tree | 04a2c15d41f79c05b74b67c9bbab4bfb483be6e1 /server/ui/controller/history.go | |
parent | 453ff64f29c5ca330b20fb9c3dd41bbf7e7b7396 (diff) | |
download | v2-2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4.tar.gz v2-2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4.tar.zst v2-2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4.zip |
Make entries sorting configurable
Diffstat (limited to 'server/ui/controller/history.go')
-rw-r--r-- | server/ui/controller/history.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/ui/controller/history.go b/server/ui/controller/history.go index 9b4e3163..10525178 100644 --- a/server/ui/controller/history.go +++ b/server/ui/controller/history.go @@ -23,7 +23,7 @@ func (c *Controller) ShowHistoryPage(ctx *core.Context, request *core.Request, r builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone) builder.WithStatus(model.EntryStatusRead) builder.WithOrder(model.DefaultSortingOrder) - builder.WithDirection(model.DefaultSortingDirection) + builder.WithDirection(user.EntryDirection) builder.WithOffset(offset) builder.WithLimit(nbItemsPerPage) |