Skip to content

Commit

Permalink
Expermineting to drag results
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Jun 24, 2024
1 parent 4533b68 commit 6985fcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/ui/Rearranger.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ public function seekAndSwap($array, $goal, $direction) {
foreach ($array as $key => $value) {
$goalkey = $this->searchInside($value, $goal);
if ($goalkey >= 0) {
echo "Goal key is " . $goalkey . "\n";
echo "Initiating swap.. \n";
$temparray = $array;
$tempkey = $key;
echo "Goal key is " . $tempkey . "\n";
echo "Initiating swap.. \n";
break;
} else {
foreach ($array as $element) {
Expand Down

0 comments on commit 6985fcd

Please sign in to comment.