Solved

Is there a way to sort a glacial list numerically - as opposed to alphabetically?

Posted on 2008-10-25
1
357 Views
Last Modified: 2008-10-26
Hello,

I have a glacial list that I need to sort.

I've been doing it like this:

this.myGlacialList.SortType = GlacialComponents.Controls.SortTypes.QuickSort;

Only problem I'm having is that I need for it to sort numerically rather than alphabetically.

When I put numbers in a column like so:  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

and then click on the column header to sort them, it sorts them alphabetically, so the result is this:

1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9

Is there any way to do this in numeric order?

Thanks in advance,
Tim
0
Comment
Question by:tmitch68
[X]
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
1 Comment
 
LVL 31

Accepted Solution

by:
moorhouselondon earned 500 total points
ID: 22806511
You could pad all numbers with a fixed number of zeroes - the number of zeroes dependent on the max number of entries in your list e.g.,

01 02 03 04 05 ... for a list extending up to 99
001 002 003 004 ... for a list extending to 999

Alternatively, define the column as a numeric column (depending on what app you are using)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Part One of the two-part Q&A series with MalwareTech.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression

632 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