Skip to content

Commit

Permalink
try to sort the extracted bus logging files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Jan 17, 2024
1 parent e1b514c commit 2493475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asammdf/mdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4840,7 +4840,7 @@ def _extract_can_logging(

total_unique_ids = total_unique_ids | set(unique_ids)

for msg_id, is_extended in unique_ids:
for msg_id, is_extended in sorted(unique_ids):
message = messages.get((msg_id, is_extended), None)

if message is None:
Expand Down Expand Up @@ -5169,7 +5169,7 @@ def _extract_lin_logging(
if bus_channel and bus != bus_channel:
continue

for msg_id_record in unique_ids:
for msg_id_record in sorted(unique_ids.tolist()):
msg_id = int(msg_id_record[0])
original_msg_id = int(msg_id_record[1])
message = messages.get(msg_id, None)
Expand Down

0 comments on commit 2493475

Please sign in to comment.