Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Sorting Algorithm
#1
I've been trying to write a string sorting algorithm for the past few days.

I'm using a lanugage that does not have any built-in functions that sort the way I want to sort.

The strings will contain alpha and numeric characters.

Here's an example of what I want to do:

Let's say we have a file with the following strings:

TEST, BELT, 40E, A1, A2, 1, 2,3, 4, 1A, 1D, 2D, 65A, 3D, 4D, 10D, 1E, 20D, 30D, 40D, 41D, 1D1


The user is able to choose a minimum and maximum.

For example, user enters
Min: 1D
Max: 40D

and it should pull the following:
1D, 2D, 3D, 4D, 10D, 20D, 30D, 40D

(in that order)


I'm guessing it would be similar to the StrCmpLogicalW function, but I would like it to not be case sensitive.

I would appreciate the help.
Reply


Messages In This Thread
String Sorting Algorithm - by 8-up - 02-27-2006, 11:10 AM
String Sorting Algorithm - by 8-up - 02-28-2006, 05:38 PM
String Sorting Algorithm - by smartass - 03-01-2006, 01:17 AM
String Sorting Algorithm - by 8-up - 03-01-2006, 11:04 AM
String Sorting Algorithm - by smartass - 03-01-2006, 11:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)