Interesting one, unfortunately Crystal doesn't have built in functions for sorting arrays, so you need to do so manually.
I couldn't find my thread that describes alternatives to bubble sorting, so here's a bubble sort routine:
whilepintingrecords;
stringvar array MyValues := split({table.field},",");
numbervar x;
numbervar y;
stringvar temp;
for x:=1 to ubound(MyValues)-1 do(
for y:=1 to ubound(MyValues)-x do(
if val(MyValues[y]) > val(MyValues[y+1]) then
(temp := MyValues[y];
MyValues[y] := MyValues[y+1];
MyValues[y+1] := temp)));
Join(MyValues,chr(13))
Looks pretty close, can't test right now.
Do a search on bubble sort if I missed something here.
-k