Sort compilation