aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/block_container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/block_container.cpp')
-rw-r--r--host/lib/rfnoc/block_container.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/rfnoc/block_container.cpp b/host/lib/rfnoc/block_container.cpp
index e7fd396ba..5b68134ab 100644
--- a/host/lib/rfnoc/block_container.cpp
+++ b/host/lib/rfnoc/block_container.cpp
@@ -48,6 +48,11 @@ std::vector<block_id_t> block_container_t::find_blocks(
block_ids.push_back(id);
}
}
+ std::sort(block_ids.begin(),
+ block_ids.end(),
+ [](const uhd::rfnoc::block_id_t& i, const uhd::rfnoc::block_id_t& j) {
+ return i < j;
+ });
return block_ids;
}