Implemented updating the order of open buffers