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

x
?
Solved

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

Posted on 2008-10-25
1
Medium Priority
?
358 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
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…
Progress

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