+ Reply to Thread
Results 1 to 4 of 4

Thread: Sorting and Array

  1. #1
    Guest.Visitor Guest

    Default Sorting and Array

    Call function qsort() in the C run-time library. Specify a comparison function that orders the blank values higher than anything else. Alternatively, once you do SORTA, search for first non-blank element, then shift all array elements by that amount. This is probably the easier to code.

  2. #2
    Guest.Visitor Guest

    Default Sorting and Array

    Hi Hans. I already considered the %LOOKUP for first non-blank element, but figure there has to be a more clear and concise method. I will look at the qsort(). Even if it is not as clear, I can add something to my little book of knowledge. Thanks again, -Mean 1

  3. #3
    Guest.Visitor Guest

    Default Sorting and Array

    Hi All. I want to sort an array. I know I can use SORTA, but don't want the empty array elements to be in front, nor do I want the array to be in descending order. All suggestions are welcome. -Mean 1

  4. #4
    coteijgeler@chello.nl Guest

    Default Sorting and Array

    Mean 1, You can also initialize the array with *HIVAL. and fill the array elements from the lowest index. Regards, Carel Teijgeler

+ Reply to Thread

Similar Threads

  1. Practical Array Processing: Initializing and Sorting
    By johnny_dt99@yahoo.com in forum RPG
    Replies: 2
    Last Post: 01-08-2009, 05:34 PM
  2. Sorting a subfile
    By JonFParis in forum RPG
    Replies: 4
    Last Post: 01-20-2007, 09:39 AM
  3. Sorting a multi dimensional array
    By B.Morris in forum RPG
    Replies: 3
    Last Post: 10-12-2006, 07:58 AM
  4. Replies: 1
    Last Post: 02-24-2006, 08:22 AM
  5. Sorting Array
    By B.Morris in forum Programming
    Replies: 9
    Last Post: 09-25-2001, 10:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts