Du behöver ingen DISTINCT för att behålla ordningen.Använd ORDER BY level tillsammans med regexp_substr och CONNECT BY.