declare @x table (t varchar(200))
declare @x2 varchar(200)
set @x2='03,15,16,08,10'
set @x2=@x2+','
while @x2<>''
begin
insert into @x (t) values (left(@x2,charindex(',',@x2)-1))
set @x2=right(@x2,len(@x2)-charindex(',',@x2))
end
select @x2=@x2+t+',' from @x order by t
set @x2=left(@x2,len(@x2)-1)
print @x2