i build a string[]
string eProduct = "#blah#ablah#bb bb";
StringBuilder sb = new StringBuilder(e Product);
eProduct = sb.Replace("#", "").ToStrin g();
string[] aProducts= eProduct.Split( ';');
then I sort asc or desc
Array.Sort so simple, is there not some just as simple without writing
comparer etc
just to Array.Sort DESC?
if( (numberDiv%2) != 0 ){
//sort desc PLEASE
Array.Sort(aPro ducts, DESC); ???????? does not work
else
//sort asc
Array.Sort(aPro ducts);
--
cindy
string eProduct = "#blah#ablah#bb bb";
StringBuilder sb = new StringBuilder(e Product);
eProduct = sb.Replace("#", "").ToStrin g();
string[] aProducts= eProduct.Split( ';');
then I sort asc or desc
Array.Sort so simple, is there not some just as simple without writing
comparer etc
just to Array.Sort DESC?
if( (numberDiv%2) != 0 ){
//sort desc PLEASE
Array.Sort(aPro ducts, DESC); ???????? does not work
else
//sort asc
Array.Sort(aPro ducts);
--
cindy
Comment