ORDER BY Attribute_SubID
ORDER BY Attribute_Sub DESC
[...] AS RowNumber
FROM #DataTable
WHERE Attribute_Sub <> ''--''