Zamów SQL według długości podziału ciągu

SELECT LEN(@String) - LEN(REPLACE(@String, ',', '')) + 1 
Purple Team