Add sorting functionality

Re-add sorting function uasort (others need to be added yet) that were defined before memleak fix by ArrayObject