LDAP\_SORT(3) Library Functions Manual LDAP\_SORT(3)

# [NAME](#NAME)

ldap\_sort\_entries, ldap\_sort\_values, ldap\_sort\_strcasecmp - LDAP sorting routines (deprecated)

# [LIBRARY](#LIBRARY)

OpenLDAP LDAP (libldap, -lldap)

# [DESCRIPTION](#DESCRIPTION)

The **ldap\_sort\_entries**(), **ldap\_sort\_values**(), and **ldap\_sort\_strcasecmp**() are deprecated.

Deprecated interfaces generally remain in the library. The macro LDAP\_DEPRECATED can be defined to a non-zero value (e.g., -DLDAP\_DEPRECATED=1) when compiling program designed to use deprecated interfaces. It is recommended that developers writing new programs, or updating old programs, avoid use of deprecated interfaces. Over time, it is expected that documentation (and, eventually, support) for deprecated interfaces to be eliminated.

# [SEE ALSO](#SEE_ALSO)

[**ldap**(3)](/man/os/openldap-2.7/ldap.3)

# [ACKNOWLEDGEMENTS](#ACKNOWLEDGEMENTS)

**OpenLDAP Software** is developed and maintained by The OpenLDAP Project &lt;http://www.openldap.org/&gt;. **OpenLDAP Software** is derived from the University of Michigan LDAP 3.3 Release.

2026/09/08 OpenLDAP 2.7.1

---

Document: ldap_sort(3) from openldap-2.7 2.7.1-r1 (Chainguard OS)
Source: https://github.com/openldap/openldap.git
