Hello,
James I had the same problem because I wanted to have videos and images first when the responsive theme only shows three buttons.
since the list of panels is just an array of objects it theoretically can be ordered by custom order here is what I came up with for the above function from JoomlaFolder\administrator\components\com_easysocial\includes\story\story.php:
if( $panels )
{
$order = array('photos','videos','links','event','files','polls','broadcast');
usort($panels, function ($a, $b) use ($order) {
$pos_a = array_search($a->name, $order);
$pos_b = array_search($b->name, $order);
return $pos_a - $pos_b;
});
foreach( $panels as $panel )
{
if ( $panel instanceof SocialStoryPanel )
{
$this->panels[] = $panel;
$this->plugins[] = $panel;
}
}
}
return true;
the $order variable defines the order I prefer and the usort function sorts the array before returning the buttons. This may break if you have different types of buttons available but should be easily adaptable.
good luck!