[#4818] sort entry points for reliable ordering