title: How to sort Windows by z-index?
body: <p>If I'm enumerating windows in <code>Application.Current.Windows</code>, how can I tell, for any two windows, which one is "closer" (i.e. has greater z-index)?</p>
  
  <p>Or, to say the same in other words, how can I sort those windows by z-index?</p>