diff --git a/code/index.html b/code/index.html
index c894b1c..da051c4 100644
--- a/code/index.html
+++ b/code/index.html
@@ -298,14 +298,11 @@
function changeOrder(from, to)
{
- oldTab=eval("tab"+from);
- newTab=eval("tab"+to);
- tmpTab=Array.from(newTab);
- console.log(from+" va en "+to);
- newTab=oldTab;
- oldTab=tmpTab;
- toutDessiner(oldTab,eval("canvas"+from),eval("ctx"+from));
- toutDessiner(newTab,eval("canvas"+to),eval("ctx"+to));
+ fromTab=eval("tab"+from);
+ toTab=eval("tab"+to);
+ [fromTab,toTab]=[toTab,fromTab];
+ toutDessiner(fromTab,eval("canvas"+from),eval("ctx"+from));
+ toutDessiner(toTab,eval("canvas"+to),eval("ctx"+to));
}