We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89a633d + e8aa8a1 commit 74bb7fdCopy full SHA for 74bb7fd
modules/external_command/external_command_demo/external_command_demo.cc
@@ -302,6 +302,7 @@ void ExternalCommandDemo::SendPathFollowCommandWithLocationRecord(
302
std::make_shared<apollo::external_command::PathFollowCommand>();
303
std::vector<std::string> record_files =
304
apollo::cyber::common::ListSubPaths(record_dir, DT_REG);
305
+ std::sort(record_files.begin(), record_files.end()); // Sort file names.
306
std::string dir_prefix = record_dir + '/';
307
for (const auto file_name : record_files) {
308
ReadPathFromLocationRecord(dir_prefix + file_name,
0 commit comments