refactor: rewrite phonetype_sort_value in plpgsql instead of plpythonu

plpythonu is not installed anymore by cubicweb

(dropped in CW 3.28 cf https://cubicweb.readthedocs.io/en/stable/changes/#id335)

Merge request reports