Click here to Skip to main content
15,915,328 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Suggestion? Pin
Corporal Agarn9-Apr-10 7:14
professionalCorporal Agarn9-Apr-10 7:14 
AnswerVersion control, Issue Management, Backups Pin
David Mujica9-Apr-10 8:47
David Mujica9-Apr-10 8:47 
AnswerRe: Suggestion? Pin
Abhinav S9-Apr-10 23:27
Abhinav S9-Apr-10 23:27 
AnswerRe: Suggestion? Pin
Eddy Vluggen10-Apr-10 23:00
professionalEddy Vluggen10-Apr-10 23:00 
AnswerRe: Suggestion? Pin
EliottA12-Apr-10 2:42
EliottA12-Apr-10 2:42 
Questionnumerical sorting Pin
k-dave8-Apr-10 23:50
k-dave8-Apr-10 23:50 
AnswerRe: numerical sorting Pin
Dalek Dave8-Apr-10 23:59
professionalDalek Dave8-Apr-10 23:59 
AnswerRe: numerical sorting Pin
Luc Pattyn9-Apr-10 0:23
sitebuilderLuc Pattyn9-Apr-10 0:23 
Your question isn't particularly clear.

An array of numbers gets sorted numerically most easily using Array.Sort().
The same statement would sort an array of strings alphabetically.

If you want the logical sorting order, like Windows Explorer sorts filenames that may contain digits, then the easiest way is to rely on function StrCmpLogicalW in shlwapi.dll
This is the prototype in C#:
[DllImport("shlwapi.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
private static extern int StrCmpLogicalW(string s1, string s2);

and either this article[^] or this site[^] may help you in getting the VB.NET equivslent.

Finally, this article[^] tells you more about custom sorting.

Smile | :)

AnswerRe: numerical sorting Pin
Gregory Gadow9-Apr-10 5:57
Gregory Gadow9-Apr-10 5:57 
QuestionUSB Software Pin
Member 47055848-Apr-10 7:20
Member 47055848-Apr-10 7:20 
AnswerRe: USB Software Pin
Dave Kreskowiak9-Apr-10 3:02
mveDave Kreskowiak9-Apr-10 3:02 
GeneralRe: USB Software Pin
FeRtoll9-Apr-10 22:49
FeRtoll9-Apr-10 22:49 
GeneralRe: USB Software Pin
Dave Kreskowiak10-Apr-10 3:40
mveDave Kreskowiak10-Apr-10 3:40 
GeneralRe: USB Software Pin
FeRtoll10-Apr-10 23:35
FeRtoll10-Apr-10 23:35 
GeneralRe: USB Software Pin
Dave Kreskowiak11-Apr-10 4:19
mveDave Kreskowiak11-Apr-10 4:19 
GeneralRe: USB Software Pin
FeRtoll11-Apr-10 13:47
FeRtoll11-Apr-10 13:47 
AnswerRe: USB Software Pin
EliottA9-Apr-10 3:31
EliottA9-Apr-10 3:31 
GeneralRe: USB Software Pin
FeRtoll9-Apr-10 22:50
FeRtoll9-Apr-10 22:50 
AnswerRe: USB Software Pin
Eddy Vluggen10-Apr-10 23:27
professionalEddy Vluggen10-Apr-10 23:27 
GeneralRe: USB Software Pin
FeRtoll10-Apr-10 23:37
FeRtoll10-Apr-10 23:37 
GeneralRe: USB Software Pin
Eddy Vluggen10-Apr-10 23:58
professionalEddy Vluggen10-Apr-10 23:58 
GeneralRe: USB Software Pin
Dave Kreskowiak11-Apr-10 4:22
mveDave Kreskowiak11-Apr-10 4:22 
GeneralRe: USB Software Pin
FeRtoll11-Apr-10 13:45
FeRtoll11-Apr-10 13:45 
GeneralRe: USB Software Pin
Dave Kreskowiak11-Apr-10 14:24
mveDave Kreskowiak11-Apr-10 14:24 
GeneralRe: USB Software Pin
FeRtoll11-Apr-10 19:21
FeRtoll11-Apr-10 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.