@current_elections = session[:user].elections.sort do |a,b|
b.enddate <=> a.enddate
end
else
# if we have no record of them, set the session id back to
@current_elections = session[:user].elections.sort do |a,b|
b.enddate <=> a.enddate
end
else
# if we have no record of them, set the session id back to