Fix thread neighbors method to sort by thread activity

Closes: #29