对字符串数组值进行排序 [英] Sort a String array Value
问题描述
我有使用C#的asp.net 4.5应用程序.在我的代码中,我要结婚了.该数组包含html字符串值.数组中的HTML字符串值显示如下,
I have asp.net 4.5 application with C#. In My code I having an arry. That array contains html string value. The Html sting avalue in array display as below now,
< span obj_type ="prod" _ProdId ="111-403" //array(0)
< span obj_type ="prod" _ProdId ="111-401">//array(1)
< span obj_type ="prod" _ProdId ="111-404">//array(2)
< span obj_type ="prod" _ProdId ="111-402">//array(3)
<span obj_type="prod" _ProdId="111-403"> //array(0)
<span obj_type="prod" _ProdId="111-401">//array(1)
<span obj_type="prod" _ProdId="111-404">//array(2)
<span obj_type="prod" _ProdId="111-402">//array(3)
需要根据ProdId对abobe数组值进行排序.如何实现此目的?
Need to sort the abobe array values based on ProdId.How can I achive for sort this?.
感谢&问候
Dileep
推荐答案
嗨Dileep
Hi Dileep
这可能对您有帮助
This may help you
http://stackoverflow.com/questions/13417912/sorting-a-string-array-according-to-a-string-position-c
http://stackoverflow.com/questions/13417912/sorting-a-string-array-according-to-a-string-position-c
这篇关于对字符串数组值进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!