diff options
Diffstat (limited to 'worker/lib/sort.go')
-rw-r--r-- | worker/lib/sort.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/lib/sort.go b/worker/lib/sort.go index 2828999c..7af2c6fa 100644 --- a/worker/lib/sort.go +++ b/worker/lib/sort.go @@ -36,6 +36,8 @@ func Sort(messageInfos []*models.MessageInfo, }) case types.SortRead: sortFlags(messageInfos, criterion, models.SeenFlag) + case types.SortFlagged: + sortFlags(messageInfos, criterion, models.FlaggedFlag) case types.SortSize: sortSlice(criterion, messageInfos, func(i, j int) bool { return messageInfos[i].Size < messageInfos[j].Size |