|
@@ -117,9 +117,10 @@ class FieldDescriptionCollection implements \ArrayAccess, \Countable
|
|
|
*/
|
|
|
public function reorder(array $keys)
|
|
|
{
|
|
|
- if($this->has('batch')){
|
|
|
+ if ($this->has('batch')) {
|
|
|
array_unshift($keys, 'batch');
|
|
|
}
|
|
|
+
|
|
|
$this->elements = array_merge(array_flip($keys), $this->elements);
|
|
|
}
|
|
|
}
|