Home
last modified time | relevance | path

Searched refs:comparator (Results 1 – 25 of 32) sorted by relevance

12

/webtrees/tests/app/
H A DI18NTest.php41 $comparator = I18N::comparator();
43 self::assertSame($comparator('', ''), 0);
44 self::assertSame($comparator('Abc', 'abc'), 0);
45 self::assertTrue($comparator('Abc', 'bcd') < 0);
46 self::assertTrue($comparator('bcd', 'ABC') > 0);
47 self::assertTrue($comparator('Abc', 'abcd') < 0);
48 self::assertTrue($comparator('Abcd', 'abc') > 0);
/webtrees/app/Http/RequestHandlers/
H A DSearchAdvancedPage.php196 $comparator = static function (string $x, string $y): int {
202 return I18N::comparator()($label1, $label2) ?: strcmp($x, $y);
207 ->sort($comparator)
H A DTreePrivacyPage.php135 … ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->tag_label, $y->tag_label))
165 uasort($tags, I18N::comparator());
H A DTreePreferencesPage.php146 ->sort(I18N::comparator());
154 ->sort(I18N::comparator());
H A DAutoCompleteFolder.php61 ->sort(I18N::comparator())
/webtrees/app/Module/
H A DTopSurnamesModule.php135 uksort($top_surnames, I18N::comparator());
167 uksort($top_surnames, I18N::comparator());
H A DAbstractIndividualListModule.php209 usort($variants, I18N::comparator());
609 uksort($list, I18N::comparator());
634 uksort($list, I18N::comparator());
H A DListsMenuModule.php84 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
H A DChartsMenuModule.php85 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
H A DReportsMenuModule.php89 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
H A DColorsTheme.php183 uasort($palettes, I18N::comparator());
H A DChartsBlockModule.php255 uasort($charts, I18N::comparator());
/webtrees/app/Elements/
H A DDemographicDataType.php58 uasort($values, I18N::comparator());
H A DHierarchicalRelationship.php61 uasort($values, I18N::comparator());
H A DEventTypeCitedFrom.php123 uasort($values, I18N::comparator());
H A DFamilyNonEvent.php72 uasort($values, I18N::comparator());
H A DIndividualNonEvent.php83 uasort($values, I18N::comparator());
H A DSourceMediaType.php99 uasort($values, I18N::comparator());
H A DRelationIsDescriptor.php134 uasort($tmp, I18N::comparator());
H A DTempleCode.php210 uasort($values, I18N::comparator());
H A DLanguageId.php214 uasort($values, I18N::comparator());
/webtrees/resources/views/
H A Dfact-add-new.phtml91 uasort($add_facts, I18N::comparator());
/webtrees/app/
H A DGedcomRecord.php133 return I18N::comparator()($x->sortName(), $y->sortName());
687 uasort($missing_facts, I18N::comparator());
H A DPlace.php197 ->sort(I18N::comparator())
/webtrees/app/Services/
H A DMapDataService.php264 … ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place));

12