glowing-bear/glowing-bear — pull request #431 by lorenzhs (2014-08-31 13:58:02+00:00)
Title: Fix Alt+[0-9] buffer access order

WeeChat sends them in no particular order, we need to sort the buffers by
their WeeChat number. To avoid copying the potentially very large buffer
objects around needlessly, extract the relevant keys and sort, then access.

This is based on https://github.com/ailin-nemui/glowing-bear/commit/ad50220bfdfcf029fc47093ce5cfea04bf90fe79