I mean, I get that online users are at the top, but other than that how are they being sorted? Seems totally arbitrary ... should be sorted alphabetically or something.
They're ordered by the last time they were active on the forum.
I had a suspicion that was it though I wasn't sure. Any way to change it to alphabetical?
In misc.php around line 335.
Change:
$query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array('order_by' => 'lastactive'));
to:
$query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array('order_by' => 'username'));