Sort artifacts and directories