code: def set_attachments_order(self, order):
          
          # append single uids to the order
          if isinstance(order, basestring):
              new_order = self.storage.get("order", [])
              new_order.append(order)
              order = new_order
          self.storage.update({"order": order})
docs: Remember the attachments order