修改后真实情况与示例数据略有不同。我有一个表,其中包含与我在应用程序中使用的用户界面相关的所有字段和属性。我需要一个按listorder排序的简单slice,它只有这样的字段名称列表。colons=[]string{'id','name','population','phonecode'}但数据源是一个slice,由map[string]interface{}值组成,这些值来自这样的sql查询selectfieldname,label,listorderfromtablefieldswheretablename="city"orderbyfieldnamefields:=[]map[s