I'm not sure if its possible but i have column which contains some English and Japanese values like this
**section**
AHU-1-1
AHU-1-10
AHU-1-1-1
AHU-1-1-2
AHU-1-2
AHU-1-3
AHU-1-8
AHU 1
AHU 11
AHU 2
賃貸人側 1連絡先
更新連絡先
Now i want an output with sorted values as -
**Section**
AHU 1
AHU 2
AHU 11
AHU-1-1
AHU-1-2
AHU-1-3
AHU-1-8
AHU-1-10
AHU-1-1-1
AHU-1-1-2
賃貸人側 1連絡先
更新連絡先
i tried following query but it is only working for values which are in English language. Not for Japanese language values.
SELECT Section
FROM dbo.Section
ORDER BY LEFT(replace(Section,'-','0'),PATINDEX('%[0-9]%',replace(Section,'- ','0'))-1), -- alphabetical sort
CONVERT(INT,SUBSTRING(replace(Section,'-','0'),PATINDEX('%[0-9]%',replace(Section,'-','0')),LEN(replace(Section,'-','0')))) -- numerical sort
Is it possible to sort in both the languages?