Sorting Terrain Level Contours

Recently I came with the Idea of using the Heat Method to sort Level contours that are flat on a plane, without any Height data, by identifying the peak and sinks and assigning them Positive and Negative energies respectively, it seems to work pretty good, but that let me to wonder if there is any other method to do the same. I’m just curious about it so if you know any reference or example feel free to comment. Thanks!!!