public static ArrayList<Commands> Sort(ArrayList<Commands> list){
         ArrayList<Commands> commands = new ArrayList<>();
         
         for(Commands var1 : list){
             if(var1.getCommand().equals("ADD")){
                 commands.add(var1);
                }
         }
         for(Commands var2 : list){
             if(var2.getCommand().equals("MOVE")){
                 commands.add(var2);
             }  
         }
         for(Commands var3 : list){
             if(var3.getCommand().equals("DEL")){
                 commands.add(var3);
             }
         }
         return commands;
     }