Internet of Things (IoT) is a new technology that is driving the connection of billions of devices around the world. Because these devices are often resource-constrained and very heterogeneous, this presents unique challenges. To address some of these challenges, new paradigms of Edge and Fog are emerging to bring computational resources of the IoT networks from remote devices like cloud closer to the end-devices. Mist computing is a new paradigm that attempts to make use of the more resource-rich nodes that are closer than Edge nodes to end-users. Since these nodes might have enough resources to host services, execute tasks or even run containers, the utilization of network resources might be improved, and delay reduced by utilizing these nodes. The nodes must, therefore, be assessed to determine which nodes should offer resources to other nodes based on their situation. In this article, a new comparative assessment model for ranking Mist nodes in highly heterogeneous massive-scale IoT networks in order to discover nodes that can offer their resources is proposed. The Mist nodes are evaluated based on parameters like resources, connections, applications, and environmental parameters to heuristically compare the neighbors with a novel learning-to-rank method to predict a suitability score for each node. The most suitable neighbor is then selected based on the score, with load balancing accomplished by a second chance method. When evaluating the performance, the results show that the proposed method succeeds in identifying resource-rich nodes, while considering the selection of other nodes. This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.