sort all the numbers
array . Sort ( ) ; StringBuilder strbuf = new StringBuilder ( ) ; System . Collections . IEnumerator it = array . GetEnumerator ( ) ; while ( it . MoveNext ( ) ) { int value = ( int ) it . Current ; if ( strbuf . Length > 0 ) { strbuf . Append ( " , ▁ " ) ; } strbuf . Append ( Convert . ToString ( value ) ) ; } return ( strbuf . Length > 0 ) ? strbuf . ToString ( ) : " - 1" ; }