THanks for your help. I added that to the bottom of _functions.php file and it crashed the system (file attached).
It looks like there is a ?> that doesn’t have a starting point? I added <<?php at the front of the piece of code and it didn’t crash anymore but still did not sort the list.
Any ideas? Thanks