I have a VBScript that I use to populate username dropdowns on our ASP intranet, with users details from Active Directory. The script uses LDAP to grab the user details. However, as the users are split into Organisational Units for each department the names come out in department groups rather than a simple alphabetical list. If I put the list of users into an array I could sort the array to get the order I want. However, I can’t find a sort function for VBScript arrays. Is there one?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Sort order (VBScript)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Sort order (VBScript)
- This topic has 4 replies, 3 voices, and was last updated 19 years, 6 months ago.
AuthorTopicWSRNicholsHoHum
AskWoody LoungerOctober 18, 2005 at 12:15 pm #425335Viewing 1 reply threadAuthorReplies-
WSjscher2000
AskWoody LoungerOctober 18, 2005 at 1:16 pm #979697It is not built in to VB or VBScript, but you can use your own code to do the sorting. Here are some places to start looking for code; the usual changes between VBA and VBS (such as only using variants) will be required in most cases: Addressing a collection ‘out of order’ (VBA/PPT) and sort array (WordXP SP3)
-
WSHoward Kaikow
AskWoody LoungerOctober 18, 2005 at 9:01 pm #979769See http://www.standards.com/index.html?Sorting%5B/url%5D for code for sorting algorithms.
-
WSRNicholsHoHum
AskWoody Lounger -
WSHoward Kaikow
AskWoody Lounger
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview build 26200.5570 released to DEV
by
joep517
3 hours, 42 minutes ago -
Windows 11 Insider Preview build 26120.3941 (24H2) released to BETA
by
joep517
5 hours, 30 minutes ago -
Windows 11 Insider Preview Build 22635.5305 (23H2) released to BETA
by
joep517
5 hours, 31 minutes ago -
No April cumulative update for Win 11 23H2?
by
Peobody
7 hours, 49 minutes ago -
AugLoop.All (TEST Augmentation Loop MSIT)
by
LarryK
6 hours, 2 minutes ago -
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
21 hours, 6 minutes ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
1 day ago -
Inetpub can be tricked
by
Susan Bradley
1 day, 1 hour ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
5 hours, 23 minutes ago -
FBI 2024 Internet Crime Report
by
Alex5723
1 day, 4 hours ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
16 hours, 15 minutes ago -
Login issues with Windows Hello
by
CWBillow
1 day, 15 hours ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
1 day, 3 hours ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
2 days, 3 hours ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
2 days, 3 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
2 days, 3 hours ago -
april update
by
69800
8 hours, 2 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
2 days, 4 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
2 days, 4 hours ago -
WuMgr not loading?
by
LHiggins
1 day ago -
Word crashes when accessing Help
by
CWBillow
1 day, 8 hours ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
2 days, 4 hours ago -
Blank Inetpub folder
by
Susan Bradley
2 days, 1 hour ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
2 days, 15 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
2 days, 1 hour ago -
Wait command?
by
CWBillow
2 days, 8 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
2 days, 21 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
3 days, 4 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
3 days, 13 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
3 days, 14 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.