took sorting function out of template.php and put it into vsite_vocab.module