08ah15 / WeEt

Custom modul for webtrees
GNU General Public License v3.0
0 stars 0 forks source link

Integrate sort descending of year published #9

Open 08ah15 opened 2 months ago

08ah15 commented 2 months ago

Use uasort and for comparison function evaluation of Titel as for exclusion of acessable years

08ah15 commented 2 months ago

usort($myArray, function($a, $b) { return $b['order'] <=> $a['order']; });

Function extractYear (source $s) { $year = (Int)substr($s->fullName, strpos($s->fullName, ‘/‘)+1),4) return $year}: int