chiark / gitweb /
stats: use a stable sort that doesn't randomize
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 11 Jan 2016 01:43:06 +0000 (02:43 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 11 Jan 2016 01:43:06 +0000 (02:43 +0100)
commitfff658ba19dc14e83a6de0701f242444d08bf7c2
tree066a6450a01ffe7f352232316ec6762ccd60d36b
parent68e2b46cb0f46773169038da398aebdfae8edc96
stats: use a stable sort that doesn't randomize

Since we only sorted by count, ignoring the string, it meant that items
with the same count might be arranged in different manners. Hence the
`stats` behaviour was not predictable at all. Now it sorts first by
count, then by string.
fdroidserver/stats.py