diff --git a/App_Code/ClsContPAQi.vb b/App_Code/ClsContPAQi.vb index 4c79dccab..62c6a036f 100644 --- a/App_Code/ClsContPAQi.vb +++ b/App_Code/ClsContPAQi.vb @@ -3322,7 +3322,7 @@ Public Class ClsContPAQi StrSQL.Append(" AND (@Codigo = '-1' OR C.Codigo = @Codigo) ") StrSQL.Append(" AND (@Afectable = -1 OR C.Afectable = @Afectable) ") StrSQL.Append(" AND (@IdPadre = -1 OR CFad.Id = @IdPadre) ") - StrSQL.Append(" ORDER BY C.id ") + StrSQL.Append(" ORDER BY C.Codigo ") ''JJMQ - 20150210: Agregué la cuenta contable padre 'StrSQL.Append(" SELECT Top(@RowNum) Id, Codigo, Nombre, ")