Sort objectives by code