Modified plugin sorting to include directory name