-- We're not just learning technology, we're pursuing dreams!
Home HTML JAVASCRIPT CSS VUE REACT PYTHON3 JAVA C C++ C# AI GO SQL LINUX VS CODE BOOTSTRAP GIT Local Bookmarks
ADO Tutorial
ADO Tutorial
ADO Introduction
ADO Database Connection
ADO ADO Recordset (Recordset)
ADO Display
ADO Query
ADO Sorting
ADO Add Record
ADO Update Record
ADO Delete Record
ADO Accelerate Script
ADO Command Object
ADO Connection Object
ADO Error Object
ADO Field Object
ADO Parameter Object
ADO Property Object
ADO Record Object
ADO Recordset Object
ADO Stream Object
ADO Data Types
ADO Summary
ADO Examples
ADO Query
ADO Add Record
ADO Sorting
We can use SQL to specify how to sort the data in a recordset.
Sorting Data
We want to display the "Companyname" and "Contactname" fields from the "Customers" table, sorted by "Companyname" (remember to save with the .asp extension):
Example
<%for each x in rs.Fields
response.write("| " & x.name & " | ")
next%>
|
Example Display »
More Examples
Sort records in descending order based on the specified field name
How to sort data according to a specified field name
Let users choose which column to sort by
Let users choose which column to sort by
ADO Query
ADO Add Record
Byte Ark Coding Plan
Supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., directly supplied by the official source for stability and reliability.
¥9.9
/ month
Activate Now
iFlytek Starry Coding Plan
Includes free model call credits, supporting DeepSeek, GLM, Kimi, MiniMax, and provides a one-stop experience and deployment platform.
¥3.9
/ month
Activate Now
Click to Share Notes
Category Navigation
Python / Data Science
AI / Intelligent Development
Frontend Development
Backend Development
Database
Mobile Development
DevOps / Engineering
Programming Languages
Computer Basics
XML / Web Service
.NET
Website Construction
Advertisement
ADO Tutorial
ADO Tutorial
ADO Introduction
ADO Database Connection
ADO ADO Recordset (Recordset)
ADO Display
ADO Query
ADO Sorting
ADO Add Record
ADO Update Record
ADO Delete Record
ADO Accelerate Script
ADO Command Object
ADO Connection Object
ADO Error Object
ADO Field Object
ADO Parameter Object
ADO Property Object
ADO Record Object
ADO Recordset Object
ADO Stream Object
ADO Data Types
ADO Summary
ADO Examples
Online Examples
· HTML Examples
· CSS Examples
· JavaScript Examples
· Ajax Examples
· jQuery Examples
· XML Examples
· Java Examples
Character Sets & Tools
· HTML Character Set Settings
· HTML ASCII Character Set
· JS Obfuscation/Encryption
· PNG/JPEG Image Compression
· HTML Color Picker
· JSON Formatter
· Random Number Generator
Latest Updates
· GraphRAG Introduction Tutorial
· Dart Enumerations and Symbols
· Dart Unit Testing
· Dart Concurrency and Iso...
· Dart Stream
· Dart Asynchronous Programming
· Dart Package and Library Management
Site Information
· Feedback
· Disclaimer
· About Us
· Article Archive
Follow WeChat
My Favorites
Mark Articles
Browsing History
Clear All
No Records Yet