Tree view sorting - change $existing definition