***** voting.bak
// No sort was specified so grab it from the user's preferences.
$Sort = Gdn::Session()->GetPreference('Plugins.Voting.CommentSort', 'popular');
} else {
***** CLASS.VOTING.PLUGIN.PHP
// No sort was specified so grab it from the user's preferences.
$Sort = Gdn::Session()->GetPreference('Plugins.Voting.CommentSort', 'date');
} else {
*****
***** voting.bak
if (!in_array($Sort, array('popular', 'date')))
$Sort = 'popular';
self::$_CommentSort = $Sort;
***** CLASS.VOTING.PLUGIN.PHP
if (!in_array($Sort, array('popular', 'date')))
$Sort = 'date';
self::$_CommentSort = $Sort;
*****