/webtrees/tests/app/ |
H A D | I18NTest.php | 41 $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 D | SearchAdvancedPage.php | 196 $comparator = static function (string $x, string $y): int { 202 return I18N::comparator()($label1, $label2) ?: strcmp($x, $y); 207 ->sort($comparator)
|
H A D | TreePrivacyPage.php | 135 … ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->tag_label, $y->tag_label)) 165 uasort($tags, I18N::comparator());
|
H A D | TreePreferencesPage.php | 146 ->sort(I18N::comparator()); 154 ->sort(I18N::comparator());
|
H A D | AutoCompleteFolder.php | 61 ->sort(I18N::comparator())
|
/webtrees/app/Module/ |
H A D | TopSurnamesModule.php | 135 uksort($top_surnames, I18N::comparator()); 167 uksort($top_surnames, I18N::comparator());
|
H A D | AbstractIndividualListModule.php | 209 usort($variants, I18N::comparator()); 609 uksort($list, I18N::comparator()); 634 uksort($list, I18N::comparator());
|
H A D | ListsMenuModule.php | 84 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
|
H A D | ChartsMenuModule.php | 85 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
|
H A D | ReportsMenuModule.php | 89 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
|
H A D | ColorsTheme.php | 183 uasort($palettes, I18N::comparator());
|
H A D | ChartsBlockModule.php | 255 uasort($charts, I18N::comparator());
|
/webtrees/app/Elements/ |
H A D | DemographicDataType.php | 58 uasort($values, I18N::comparator());
|
H A D | HierarchicalRelationship.php | 61 uasort($values, I18N::comparator());
|
H A D | EventTypeCitedFrom.php | 123 uasort($values, I18N::comparator());
|
H A D | FamilyNonEvent.php | 72 uasort($values, I18N::comparator());
|
H A D | IndividualNonEvent.php | 83 uasort($values, I18N::comparator());
|
H A D | SourceMediaType.php | 99 uasort($values, I18N::comparator());
|
H A D | RelationIsDescriptor.php | 134 uasort($tmp, I18N::comparator());
|
H A D | TempleCode.php | 210 uasort($values, I18N::comparator());
|
H A D | LanguageId.php | 214 uasort($values, I18N::comparator());
|
/webtrees/resources/views/ |
H A D | fact-add-new.phtml | 91 uasort($add_facts, I18N::comparator());
|
/webtrees/app/ |
H A D | GedcomRecord.php | 133 return I18N::comparator()($x->sortName(), $y->sortName()); 687 uasort($missing_facts, I18N::comparator());
|
H A D | Place.php | 197 ->sort(I18N::comparator())
|
/webtrees/app/Services/ |
H A D | MapDataService.php | 264 … ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place));
|