Fix a case where file listings could jitter

This commit is contained in:
Christian Rocha 2020-12-17 10:28:51 -05:00
parent 70a155ee30
commit a0fb0e4cd0

View file

@ -385,7 +385,7 @@ func (m stashModel) getMarkdownByType(types ...DocType) []*markdown {
}
}
sort.Sort(markdownsByLocalFirst(agg))
sort.Stable(markdownsByLocalFirst(agg))
return agg
}