Raul Is the leading space character in " fechaUpload" you have below also in your actual code? This might explain it.
oCommand.properties("sort on")=" fechaUpload" Tony ---------- Original Message ---------------------------------- From: Raul Martínez <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Fri, 24 Oct 2003 15:21:46 +0200 Hi I have a Windows 2003 Active Directory and I have a OU with 100000 objects, and I have a query with ASP. The problem is that when I like to present the query descending by fechaUpload (for example), Active doesn't order it. The code is the following one: oCommand.properties("size limit")=100 oCommand.properties("sort on")=" fechaUpload" LDAPQuery=" <ldap://10.100.111.28/OU=documentos,DC=aspdocxier,DC=i2000,DC=es> LDAP://10.100.111.28/OU=documentos,DC=aspdocxier,DC=i2000,DC=es" oCommand.CommandText="select familia, categoria, subcategoria, fechaupload, numVersiondoc, pathFTP from '" &LDAPQuery& "' where objectClass='doc' and familia='scanx' " Thanks. Raul. List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/