Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
(window-list) returns a list of visible windows. Is it possible to
get this list sorted from the most recently active window to the least?
Found a solution by digging into get-mru-window, which uses window-use-time:
(lambda (a b) (> (window-use-time a)
Required, but never shown