From 73e782e684971554979dbed98e44700af6052a9b Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 4 Jan 2023 18:36:25 +0800 Subject: [PATCH] opt some --- base/ctx/command.go | 1 + core/chat/storm.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/ctx/command.go b/base/ctx/command.go index abd11ef2..1fe119e7 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -60,6 +60,7 @@ func _command_search(m *ice.Message, kind, name, text string) { mdb.HELP, cmd.Help, nfs.FILE, FileURI(cmd.GetFileLines()), ) }) + m.Sort(m.OptionFields()) } const ( diff --git a/core/chat/storm.go b/core/chat/storm.go index e3ce92b4..74d8abb6 100644 --- a/core/chat/storm.go +++ b/core/chat/storm.go @@ -38,7 +38,7 @@ func init() { if m.Option(ice.MSG_STORM) == "" { m.Cmdy(mdb.SELECT, RIVER, _river_key(m), mdb.HASH, ice.OptionFields("time,hash,name,text,count")) } else if len(arg) == 0 || kit.Int(arg[0]) > 0 { - m.Cmdy(mdb.SELECT, RIVER, _storm_key(m), mdb.LIST, mdb.ID, arg, ice.OptionFields("time,id,space,index,args,style,display")) + m.Cmdy(mdb.SELECT, RIVER, _storm_key(m), mdb.LIST, mdb.ID, arg, ice.OptionFields("time,id,space,index,args,style,display")).SortInt(mdb.ID) } else if aaa.Right(m, arg) { m.Push(ctx.INDEX, arg[0]) }