aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--widgets/msglist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index a316cf5..39d57e0 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -96,7 +96,7 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
)
uids := store.Uids()
sorter := msgSorter{uids: uids, store: store}
- sort.Sort(&sorter)
+ sort.Stable(&sorter)
for i := len(uids) - 1 - ml.scroll; i >= 0; i-- {
uid := uids[i]