Create a little loop and then... If sorting an ordinary array...
locate Part in Part.Array by 'AL' setting posn else null ins Part before Part.Array<posn> If inserting into a multi-value array... locate Part in Part.Array<1> by 'AL' setting posn else null ins Part before Part.Array<1,posn> I am nearly certain that there is nothing like a "SORT" command in IBM UV UniBasic. I believe that the technique given above is the only way to handle it. HTH --Bill -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Baker Hughes Sent: Tuesday, July 22, 2008 10:51 AM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Basic SORT() Function not avail in UniVerse? Hey, I'm needing to SORT a dynamic array and apparently UniVerse doesn't have this Function. Other MV implementations have this, such as D3 - "The sort() function sorts an attribute or value mark delimited str.exp in ascending order." [from ePick] There was also a user exit u1072 that did the same thing. Does anyone have a work around or fast path to same thing .... maybe I'm missing something but can't see this in UV docs. -Baker ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/