public function reorderWidgetAction()
{
$config = $this->getCurrentConfiguration();
$newConfig = [[], []];
$colCount = 0;
foreach ($config["positions"] as $col) {
foreach ($col as $row) {
if ($row['id'] != $this->getParam("id")) {
$newConfig[$colCount][] = $row;
} else {
$toMove = $row;
}
}
$colCount++;
}
array_splice($newConfig[$this->getParam("column")], $this->getParam("row"), 0, [$toMove]);
$config["positions"] = $newConfig;
$this->saveConfiguration($config);
$this->_helper->json(["success" => true]);
}