adds externals sort