Skip to content

Method locale_sort

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: locale_sort()

Turkce Dokumantasyon | English Documentation

Category: Locale & Multilingual Methods
Submodule: AmberDB::Locale
Entry Type: Unicode Collation Sorting


1. Definition and Overview

locale_sort() sorts an array of strings according to the active language's Unicode Collation Algorithm (UCA) collation rules.


2. Syntax and Signature

my @sorted_strings = $adb->sort(@unsorted_strings);

3. Practical Code Example

my $adb = AmberDB->new(cfg => { language => "tr" });
my @sorted = $adb->sort("çilek", "armut", "şeftali", "muz", "ıspanak", "incir");
# Correctly orders: armut, çilek, ıspanak, incir, muz, şeftali

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally