potion_sort_internal typecheck: no return, fatal