The Sort field in LDAP Search option provides the ability to define the sort order of the results returned by the server, the sort is completed on the servers before the results are returned. The sort field provides a number of options to define how the sort is completed.
The basic sort option is to specify the name of the field to be sorted, the field is sorted in alphabetically order, if you want a reverse the sorted order, prefix the attribute name with '-' i.e -displayname.
NetTools allows multiple sort field names to be specified, with each field name separated by a comma, however, AD only supports one field, if you specify more than one, the DC will return a critical control is not supported.
This feature is available in v1.30.7 beta and above
The sort field also supports the use of Ordering OID, which can be used to change the ordering of the sorted results returned by the server. To specify an Ordering OID, you need to enter the attribute to sorted followed by the Ordering OID separated by a semi-colon. i.e. displayname;1.2.840.113556.1.4.1594
These are Ordering OID that can be used:
Ordering rule OID | Sort order |
---|---|
1.2.840.113556.1.4.1461 | Afrikaans |
1.2.840.113556.1.4.1462 | Albanian |
1.2.840.113556.1.4.1463 | Arabic: Saudi Arabia |
1.2.840.113556.1.4.1464 | Arabic: Iraq |
1.2.840.113556.1.4.1465 | Arabic: Egypt |
1.2.840.113556.1.4.1466 | Arabic: Libya |
1.2.840.113556.1.4.1467 | Arabic: Algeria |
1.2.840.113556.1.4.1468 | Arabic: Morocco |
1.2.840.113556.1.4.1469 | Arabic: Tunisia |
1.2.840.113556.1.4.1470 | Arabic: Oman |
1.2.840.113556.1.4.1471 | Arabic: Yemen |
1.2.840.113556.1.4.1472 | Arabic: Syria |
1.2.840.113556.1.4.1473 | Arabic: Jordan |
1.2.840.113556.1.4.1474 | Arabic: Lebanon |
1.2.840.113556.1.4.1475 | Arabic: Kuwait |
1.2.840.113556.1.4.1476 | Arabic: UAE |
1.2.840.113556.1.4.1477 | Arabic: Bahrain |
1.2.840.113556.1.4.1478 | Arabic: Qatar |
1.2.840.113556.1.4.1479 | Armenian |
1.2.840.113556.1.4.1480 | Assamese |
1.2.840.113556.1.4.1481 | Azeri: Latin |
1.2.840.113556.1.4.1482 | Azeri: Cyrillic |
1.2.840.113556.1.4.1483 | Basque |
1.2.840.113556.1.4.1484 | Belarussian |
1.2.840.113556.1.4.1485 | Bengali |
1.2.840.113556.1.4.1486 | Bulgarian |
1.2.840.113556.1.4.1487 | Burmese |
1.2.840.113556.1.4.1488 | Catalan |
1.2.840.113556.1.4.1489 | Chinese: Taiwan |
1.2.840.113556.1.4.1490 | Chinese: PRC |
1.2.840.113556.1.4.1491 | Chinese: Hong Kong SAR |
1.2.840.113556.1.4.1492 | Chinese: Singapore |
1.2.840.113556.1.4.1493 | Chinese: Macau SAR |
1.2.840.113556.1.4.1494 | Croatian |
1.2.840.113556.1.4.1495 | Czech |
1.2.840.113556.1.4.1496 | Danish |
1.2.840.113556.1.4.1497 | Dutch |
1.2.840.113556.1.4.1498 | Dutch:Belgium |
1.2.840.113556.1.4.1499 | English: United States |
1.2.840.113556.1.4.1500 | English: United Kingdom |
1.2.840.113556.1.4.1665 | English: Australia |
1.2.840.113556.1.4.1666 | English: Canada |
1.2.840.113556.1.4.1667 | English: New Zealand |
1.2.840.113556.1.4.1668 | English: Ireland |
1.2.840.113556.1.4.1505 | English: South Africa |
1.2.840.113556.1.4.1506 | English: Jamaica |
1.2.840.113556.1.4.1507 | English: Caribbean |
1.2.840.113556.1.4.1508 | English: Belize |
1.2.840.113556.1.4.1509 | English:Trinidad |
1.2.840.113556.1.4.1510 | English: Zimbabwe |
1.2.840.113556.1.4.1511 | English: Philippines |
1.2.840.113556.1.4.1512 | Estonian |
1.2.840.113556.1.4.1513 | Faeroese |
1.2.840.113556.1.4.1514 | Persian |
1.2.840.113556.1.4.1515 | Finnish |
1.2.840.113556.1.4.1516 | French: France |
1.2.840.113556.1.4.1517 | French: Belgium |
1.2.840.113556.1.4.1518 | French: Canada |
1.2.840.113556.1.4.1519 | French: Switzerland |
1.2.840.113556.1.4.1520 | French: Luxembourg |
1.2.840.113556.1.4.1521 | French: Monaco |
1.2.840.113556.1.4.1522 | Georgian |
1.2.840.113556.1.4.1523 | German: Germany |
1.2.840.113556.1.4.1524 | German: Switzerland |
1.2.840.113556.1.4.1525 | German: Austria |
1.2.840.113556.1.4.1526 | German: Luxembourg |
1.2.840.113556.1.4.1527 | German: Liechtenstein |
1.2.840.113556.1.4.1528 | Greek |
1.2.840.113556.1.4.1529 | Gujarati |
1.2.840.113556.1.4.1530 | Hebrew |
1.2.840.113556.1.4.1531 | Hindi |
1.2.840.113556.1.4.1532 | Hungarian |
1.2.840.113556.1.4.1533 | Icelandic |
1.2.840.113556.1.4.1534 | Indonesian |
1.2.840.113556.1.4.1535 | Inukitut |
1.2.840.113556.1.4.1536 | Italian:Italy |
1.2.840.113556.1.4.1537 | Italian:Switzerland |
1.2.840.113556.1.4.1538 | Japanese |
1.2.840.113556.1.4.1539 | Kannada |
1.2.840.113556.1.4.1540 | Kashmiri Arabic |
1.2.840.113556.1.4.1541 | Kashmiri |
1.2.840.113556.1.4.1542 | Kazakh |
1.2.840.113556.1.4.1543 | Khmer |
1.2.840.113556.1.4.1544 | Kirghiz |
1.2.840.113556.1.4.1545 | Konkani |
1.2.840.113556.1.4.1546 | Korean |
1.2.840.113556.1.4.1547 | Korean:Johab |
1.2.840.113556.1.4.1548 | Latvian |
1.2.840.113556.1.4.1549 | Lithuanian |
1.2.840.113556.1.4.1550 | North Macedonian |
1.2.840.113556.1.4.1551 | Malaysian |
1.2.840.113556.1.4.1552 | Malay Brunei Darussalam |
1.2.840.113556.1.4.1553 | Malayalam |
1.2.840.113556.1.4.1554 | Maltese |
1.2.840.113556.1.4.1555 | Manipuri |
1.2.840.113556.1.4.1556 | Marathi |
1.2.840.113556.1.4.1557 | Nepali:Nepal |
1.2.840.113556.1.4.1558 | Norwegian:Bokmal |
1.2.840.113556.1.4.1559 | Norwegian:Nynorsk |
1.2.840.113556.1.4.1560 | Odia |
1.2.840.113556.1.4.1561 | Polish |
1.2.840.113556.1.4.1562 | Portuguese:Brazil |
1.2.840.113556.1.4.1563 | Portuguese:Portugal |
1.2.840.113556.1.4.1564 | Punjabi |
1.2.840.113556.1.4.1565 | Romanian |
1.2.840.113556.1.4.1566 | Russian |
1.2.840.113556.1.4.1567 | Sanskrit |
1.2.840.113556.1.4.1568 | Serbian:Cyrillic |
1.2.840.113556.1.4.1569 | Serbian:Latin |
1.2.840.113556.1.4.1570 | Sindhi:India |
1.2.840.113556.1.4.1571 | Slovak |
1.2.840.113556.1.4.1572 | Slovenian |
1.2.840.113556.1.4.1573 | Spanish: SpainTraditional Sort |
1.2.840.113556.1.4.1574 | Spanish: Mexico |
1.2.840.113556.1.4.1575 | Spanish: SpainModern Sort |
1.2.840.113556.1.4.1576 | Spanish: Guatemala |
1.2.840.113556.1.4.1577 | Spanish: Costa Rica |
1.2.840.113556.1.4.1578 | Spanish: Panama |
1.2.840.113556.1.4.1579 | Spanish: Dominican Republic |
1.2.840.113556.1.4.1580 | Spanish: Venezuela |
1.2.840.113556.1.4.1581 | Spanish: Colombia |
1.2.840.113556.1.4.1582 | Spanish: Peru |
1.2.840.113556.1.4.1583 | Spanish: Argentina |
1.2.840.113556.1.4.1584 | Spanish: Ecuador |
1.2.840.113556.1.4.1585 | Spanish: Chile |
1.2.840.113556.1.4.1586 | Spanish: Uruguay |
1.2.840.113556.1.4.1587 | Spanish: Paraguay |
1.2.840.113556.1.4.1588 | Spanish: Bolivia |
1.2.840.113556.1.4.1589 | Spanish: El Salvador |
1.2.840.113556.1.4.1590 | Spanish: Honduras |
1.2.840.113556.1.4.1591 | Spanish: Nicaragua |
1.2.840.113556.1.4.1592 | Spanish: Puerto Rico |
1.2.840.113556.1.4.1593 | Swahili: Kenya |
1.2.840.113556.1.4.1594 | Swedish |
1.2.840.113556.1.4.1595 | Swedish: Finland |
1.2.840.113556.1.4.1596 | Tamil |
1.2.840.113556.1.4.1597 | Tatar: Tatarstan |
1.2.840.113556.1.4.1598 | Telugu |
1.2.840.113556.1.4.1599 | Thai |
1.2.840.113556.1.4.1600 | Turkish |
1.2.840.113556.1.4.1601 | Ukrainian |
1.2.840.113556.1.4.1602 | Urdu: Pakistan |
1.2.840.113556.1.4.1603 | Urdu: India |
1.2.840.113556.1.4.1604 | Uzbek: Latin |
1.2.840.113556.1.4.1605 | Uzbek: Cyrillic |
1.2.840.113556.1.4.1606 | Vietnamese |
1.2.840.113556.1.4.1607 | Japanese: XJIS |
1.2.840.113556.1.4.1608 | Japanese:?Unicode |
1.2.840.113556.1.4.1609 | Chinese: Big5 |
1.2.840.113556.1.4.1610 | Chinese: PRCP |
1.2.840.113556.1.4.1611 | Chinese:?Unicode |
1.2.840.113556.1.4.1612 | Chinese: PRC |
1.2.840.113556.1.4.1613 | Chinese: BOPOMOFO |
1.2.840.113556.1.4.1614 | Korean: KSC |
1.2.840.113556.1.4.1615 | Korean:?Unicode |
1.2.840.113556.1.4.1616 | German Phone Book |
1.2.840.113556.1.4.1617 | Hungarian: Default |
1.2.840.113556.1.4.1618 | Hungarian: Technical |
1.2.840.113556.1.4.1619 | Georgian: Traditional |
1.2.840.113556.1.4.1620 | Georgian: Modern |
If you want to enable additional Ordering OID, the corresponding Language ID must be enabled for AD or LDS. If you specify a Ordering OID that is not supported the server will return an Error: (0x5D) did not find the specified control. See this article for details on how to enable additional languages support.