Node sorting for Croogo