max :: sort externals by type