It is problematic to keep an order if there is no column that offers an ordering, such as a primary key. Try the next workaround:
;
with Q as
(
select *,
row_number() over (order by Name1) as rn
from #temp
)
SELECT
STUFF(
(
SELECT char(13) + Issue
FROM Q
WHERE emp1 = T.emp1
group by Issue
order by min(rn)
FOR XML PATH(''), TYPE
).value('.[1]', 'nvarchar(max)'),
1, 1, ''
) + CHAR(13) AS issue,
STUFF(
(
SELECT char(13) + Type
FROM Q
WHERE emp1 = T.emp1
group by Type
order by min(rn)
FOR XML PATH(''), TYPE
).value('.[1]', 'nvarchar(max)'),
1, 1, ''
) + CHAR(13) AS Type,
emp1,
name1
FROM Q T
WHERE Emp1 = 1
GROUP BY emp1, name1
If it does not work, then show sample data to reproduce the problem.