Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Sorting sorting numbrer so that they are put in numerical order regardless if they are positive or negative numbers.

Posted on 2008-10-07
Medium Priority
Last Modified: 2013-11-15
I have a column of numbers in a table (Acess 2003) that I need to sort in order by the number itself ingoring the positive or negative factor


the results would put the numbers in the  following order

Any idea how to do this.

Question by:NLGroup
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 93

Expert Comment

by:Patrick Matthews
ID: 22662960
FROM SomeTable
ORDER BY Abs(SomeColumn) ASC
LVL 26

Expert Comment

ID: 22662965
Order by abs(yourValue) ascending

Author Comment

ID: 22663052
Sorry I forgot to mention that it needs to keep the positive and negative features of the numbers as well.

LVL 93

Accepted Solution

Patrick Matthews earned 1000 total points
ID: 22663087
NLGroup said:
>>Sorry I forgot to mention that it needs to keep the positive and negative features of the numbers as well.

Both of our suggestions do that.  They really are the same suggestion, when you get down to it...

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question