mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-29 06:51:10 -05:00
PkgInfo: sort 'vlist' output by version
This commit is contained in:
parent
73c9bea4d5
commit
bcc4e194a4
@ -118,7 +118,7 @@ class PkgInfo(callbacks.Plugin):
|
|||||||
if not versions:
|
if not versions:
|
||||||
irc.error("No results found.", Raise=True)
|
irc.error("No results found.", Raise=True)
|
||||||
s = "Found {} results:".format(len(versions))
|
s = "Found {} results:".format(len(versions))
|
||||||
for v in versions.keys():
|
for v in sorted(versions, key=versions.get):
|
||||||
s += " {} \x02({})\x02,".format(v, versions[v])
|
s += " {} \x02({})\x02,".format(v, versions[v])
|
||||||
s += " View more at: {}search?keywords={}".format(self.baseurl, pkg)
|
s += " View more at: {}search?keywords={}".format(self.baseurl, pkg)
|
||||||
irc.reply(s)
|
irc.reply(s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user