<?php $items = [1,0,'a']; $fn = static function($a,$b){ return (string)$a <=> (string)$b; }; usort($items, $fn); var_dump($items);
You have javascript disabled. You will not be able to edit any code.