Skip to content

Commit

Permalink
sort test
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent 0bda789 commit 8a6bbf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ void Handler::updateHookMetadata(HookHandle const& hook, HookMetadata const& met
void Handler::reorderFunctions() {
auto& vec = m_content->m_functions;
std::cout << "functions size " << vec.size() << std::endl;
std::sort(m_content->m_functions.begin(), m_content->m_functions.end());
// std::sort(vec.begin(), vec.end(), [this](auto const a, auto const b) {
// std::cout << "reordering " << m_handles[a] << " " << m_handles[b] << std::endl;
// return (m_hooks.at(m_handles[a])->m_metadata.m_priority < m_hooks.at(m_handles[b])->m_metadata.m_priority);
Expand Down

0 comments on commit 8a6bbf8

Please sign in to comment.