Sort by uid