1 | <?php |
||
20 | class ViewSorter |
||
21 | { |
||
22 | /** |
||
23 | * @var \Collator|null |
||
24 | */ |
||
25 | protected $collator = null; |
||
26 | |||
27 | /** |
||
28 | * @param string $locale |
||
29 | */ |
||
30 | public function __construct($locale) |
||
36 | |||
37 | /** |
||
38 | * Sort choice. |
||
39 | * |
||
40 | * @param FormView $choice |
||
41 | */ |
||
42 | public function choice(FormView $choice) |
||
55 | |||
56 | /** |
||
57 | * @param string $a |
||
58 | * @param string $b |
||
59 | * |
||
60 | * @return int |
||
61 | */ |
||
62 | public function compare($a, $b) |
||
70 | } |
||
71 |