$sqlsubcat = "SELECT s.IdSubCategoria,s.IdCategoria,s.SubCategoria " . "FROM SubCategorias s " . "ORDER BY [b]s.IdCategoria,[/b] s.SubCategoria";