add recursive key sorter in functions.php