以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]排序问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=175320)

--  作者:砥砺前行
--  发布时间:2022/3/1 9:41:00
--  [求助]排序问题
For Each Product As String In Products 这个排序如何按照指定规则排序 
--  作者:有点蓝
--  发布时间:2022/3/1 9:53:00
--  
什么规则?
--  作者:砥砺前行
--  发布时间:2022/3/3 8:28:00
--  
比如  将 P1和P2放在 1和2,其他按拼音排序从3开始
--  作者:有点蓝
--  发布时间:2022/3/3 9:31:00
--  
只能统一规则。增加一个排序列,把需要放到前面的从小到大给定序号

Dim Products As List(Of String)
Products DataTables("产品").GetValues("产品名称","","序号,产品名称")
For Each Product As String In Products
    Output.Show(Product)

Next