Sort:  

Okay, I think I've somewhat verified this by poking around source. Suffices to say it definitely does not work remotely close to what I was guessing :)