就单独的一个数据源,里面是全部数据,怎么才能进行首字母排序显示出来呢?????高手解答!!!

解决方案 »

  1.   

        string[] words = { "cherry", "apple", "blueberry" };
        
        var sortedWords =
            from w in words
            orderby w
            select w;
        
        Console.WriteLine("The sorted list of words:");
        foreach (var w in sortedWords) {
            Console.WriteLine(w);
        }
      

  2.   

    SELECT * FROM youtab order by ClassName collate Chinese_PRC_CS_AS_KS_WS