I have a clip which starts what you want, but you will probably want it
tweaked a bit more.
It uses the kind of raw sorting which considers 116 to be a smaller
number than 18. It works great with alphabetical values but looks wierd
to us with numeric stuff.
I can think of several ways to go from here. Probably the easiest would
be to assign the %temp% variable to an array and writing your own
sorting algorithm (sp?) which gives your prefered value, or this might
get you near enough that you can manually drag and drop your numbers
into order. Course someone else could already have the perfect clip out
H="sort comma delimited list"
^!Set %temp%=^$StrReplace(", ";"^%NL%";^%temp%;FALSE;FALSE)$
^!Set %temp%=^$StrReplace("^%NL%";", ";^%temp%;FALSE;FALSE)$
VSNL MAIL wrote:
As a result, all the numbers in the list are not in any order. I
> have given an example below.
> Damodardeva 18, 69, 100, 366, 111, 213, 261, 370, 116, 153, 303, 363
> Can anybody suggest a clip which would sort the numbers in ascending order.