I have a table in SQL 2012 which we can call 'Table' for instance. It has items like this in it,
Column
_one
_two
three_blah
four_blah
I would like to be able to do this,
select * from Table order by Column
And the result be this,
four_blah
one
three_blah
two
So it orders the items based on removing the leading underscore characters. It can't just blindly remove the underscore characters though because the underscores might be in the middle of the items.
For instance this does not work,
select Replace(Column, '_', '') from Table order by Replace(Column, '_', '')
