This function gets called from within a recursive function that sorts a hierarchical tree of data nodes. In the actual code it handles sorting on different keys within the node structure.
Or should I say, nerd structure?