I may be over simplifying this, but have you used the 'Reorder/Sort' radio button on your "fields" tab within query manager? See below:


------------------------------
Juan Mercado
Systems Analyst
Cerritos College
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
------------------------------
Original Message:
Sent: 08-07-2025 08:43 AM
From: Stephen Forrest
Subject: Sort Help
Create an expression that assigns a number value to how you want to sort, then add it to the field list, and then sort on that column.
If you want class sections that start with 4 to sort first, and H to sort second, and 2 to sort third, for example, then
(Case
When A.CLASS_SECTION Like '4%' Then 1
When A.CLASS_SECTION Like 'H%' Then 2
When A.CLASS_SECTION Like '2%' Then 3
Else 4
End)
Stephen Forrest
Institutional Research Analyst the Third
University Decision Support
Enrollment Management Research Group
Office of the Provost
Southern Methodist University
sforrest@smu.edu
214-768-4015
"The only reason we put the data in, is to take the data out."
Original Message:
Sent: 8/7/2025 7:27:00 AM
From: Tracey Einig Jones
Subject: Sort Help
Hello everyone,
Can I just say, that I love this group.... the hints, tips and tricks are great and I've learnt a lot by just lurking. So thank you all.
I use PSQuery quite a lot and would class myself as in intermediate user but I'm a little bit puzzled as to how I would go about defining a sort order.
I would like my query results to come back in a specific order that I can define from one field. How would I go about this?
I'm currently using record CLASS_TBL_SE_VW - Class Table Student Enrl View and I want to sort on the CLASS_SECTION - Class Section field in a none alpha manner.
Thanks in advance.
Tracey
------------------------------
Tracey Einig Jones
Business Support Officer
Liverpool John Moores University
------------------------------