Sweden fought in its last war in 1814, and Switzerland fought in its last war in 1815. So although Swiss neutrality is more famous, Sweden’s neutrality is older.
For those interested, Sweden’s last military action was an invasion to force Norway under Swedish control. Switzerland’s was fighting on Napoleon’s side until Waterloo.
Neither Sweden nor Switzerland participated in either world war, and today, neither are members of NATO.