Possible Duplicate:
Sort layers in QGIS table of contents?
I write a qgis python plugin ,and i try to connect keybord keys to reoder layers in qgis . Are there a method in qgis allows me to retrieve the ordered list of layers and another that set the order?