sorting arrays! HELP!!

1. Member
Join Date
Dec 1969
Posts
58

## sorting arrays! HELP!!

Please guys get me through this!!! My submission time is getting near Please!!<BR>Ok Here is the prob..<BR>I need to sort this array for the lowest and highest temp for the week... .. it stops when it hits the first highest value.<BR>Eg: if I have a range of 70,80,60,90,50,70,30<BR>it writes 80 but does not sort further for "90"<BR>tempArr = Array(SH,MH,TH,WH,THH,FH,SATH) <BR>Hi= tempArr(0) <BR><BR>for i= 0 to ubound(tempArr) +1<BR>for j=0 to 1<BR>if tempArr(j) &#060; tempArr(j+1) then <BR>Hi= tempArr(j+1) <BR>tempArr(j+1)=tempArr(j)<BR>tempArr(j)=tempArr( 0)<BR>end if <BR>next<BR>NExt<BR><BR><BR>Same happens for the low. It stops when it hits the first low value.<BR>tempArr = Array(SL,ML,TL,WL,THL,FL,SATL) <BR>Lo=tempArr(0)<BR>for iCount = 0 to Lbound(tempArr) -1<BR>for j= 0 to 1<BR>if tempArr(j) &#062; tempArr(j+1) then <BR>Lo= tempArr(j+1) <BR>tempArr(j+1)=tempArr(j)<BR>tempArr(j)=tempArr( 0)<BR>end if <BR>NExt<BR>next<BR><BR>Please Help me!!

2. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: sorting arrays! HELP!!

http://www.4guysfromrolla.com/webtech/011001-1.shtml

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•