• Erin Ramsay (3/1/2013)


    If your custom phrase is static you can use:

    select letter from @test1 order by (case letter when 'd' then 1 when 'c' then 2 when 'b' then 3 when 'a' then 4 when 'e' then 5 end)

    Dear Erin,

    Thanks, you solved my problem.

    Regards.