-
sorting arrays
Hi I have the following vb array that I want to sort...
(2264,.11/1849,.33/3456,.1/3786,1/)
we have (database results ID, rate of that result/.....
What I want to do is split at "/" sort the arrays descending using the second number.
So I should end up with
(3786,1/1849,.33/2264,.11/3456,.1/)
I have tis code but it would only work if my string was single entities like (4,3,6,9)
<script language=JScript runat=server>
function SortVBArray(arrVBArray) {
return arrVBArray.toArray().sort().join('\b');
}
</script>
<%
Function SortArray(arrInput)
SortArray = Split(SortVBArray(arrInput), "/")
End Function
%>
Any help most appreciated.
Thank you, John.
-
Thsi is a Java forum, not Javascript, you'll get more luck with one of those forums.
ArchAngel.
O:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks