Add test for sort exproute before compile